PDOCrud sql operation

Render sql helps to display the data in grid/table format. You can write sql select statement to display data in the grid format. Please note that since sql statement can be of any type so the default grid function will not work with this sql render. From version 2.4, the pagination, records per page and display of total records is also removed. A better option to use the sql render with the jquery datatable plugin. You can see example here

  
                                 $pdocrud = new PDOCrud();
                                $pdocrud->setQuery("select * from orders");                
                                echo $pdocrud->render("SQL");
                                

# ID Order no Order date Customer name Order amount Order status
1 47 96349 2016-09-08 Wallace Gillespie 71 Completed
2 49 3691 2016-09-08 Callum Solomon 72 Completed
3 50 77099 2016-09-08 Nola Rojas 20 Completed
4 51 37429 2016-09-08 Talon Rowland 77 Completed
5 52 44144 2016-09-08 Cheryl Bowers 26 Completed
6 53 62391 2016-09-08 Bree Gaines 96 Completed
7 54 54999 2016-09-08 Lacota Bonner 5 Completed
8 55 83323 2016-09-08 Bradley Freeman 37 Completed
9 56 409 2016-09-08 Jasper Santiago 68 Completed
10 57 50683 2016-09-08 Hilary Conner 28 Completed
11 58 93143 2016-09-08 DROP orders;# 37 Completed
12 59 48121 2016-09-08 Britanni Schmidt 1 Completed
13 60 74815 2016-09-08 Caleb Lynn 95 Completed
14 61 37748 2016-09-08 Madeson Robbins 73 Completed
15 62 34490 2016-09-08 Emily Richmond 77 Completed
16 63 37920 2016-09-08 Damian Wilson 67 Completed
17 64 28431 2016-09-08 Mikayla Mendez 5 Completed
18 65 94701 2016-09-08 Igor Gutierrez 25 Completed
19 66 36440 2016-09-08 Heather Terrell 8 Completed
20 67 37251 2016-09-08 Rose Barry 64 Completed
21 68 35643 2016-09-08 Bernard Gilmore 95 Completed
22 69 9551 2016-09-08 Meghan Mack 89 Completed
23 70 44898 2016-09-08 Lillith Terrell 43 Completed
24 71 91617 2016-09-08 Jaquelyn James 57 Completed
25 72 78062 2016-09-08 Karly Beard 56 Completed
26 73 87594 2016-09-08 Kareem Cooke 7 Completed
27 74 24386 2016-09-08 Amethyst Bass 70 Completed
28 75 49890 2016-09-08 Silas Bates 27 Completed
29 76 42911 2016-09-08 Sybil Watts 24 Completed
30 77 75674 2016-09-08 Warren Hays 39 Completed
31 78 65775 2016-09-08 Kirsten Martin 25 Completed
32 79 37102 2016-09-08 Cade Lowe 7 Completed
33 80 74040 2016-09-08 Penelope Moss 59 Completed
34 81 89592 2016-09-08 Chase Andrews 76 Completed
35 82 84334 2016-09-08 Fatima Mcconnell 4 Completed
36 83 91414 2016-09-08 Kelly Garcia 91 Completed
37 84 89834 2016-09-08 Aubrey Leblanc 41 Completed
38 85 71212 2016-09-08 Cassidy Dyer 33 Completed
39 86 14459 2016-09-08 Rina Lawrence 43 Completed
40 87 22844 2016-09-08 Malcolm Richard 17 Completed
41 88 43892 2016-09-08 Avye Fowler 55 Completed
42 89 72412 2016-09-08 Jeremy Randolph 22 Completed
43 90 64889 2016-09-08 Ray Clayton 46 Completed
44 91 5518 2016-09-08 Lynn Turner 64 Completed
45 92 91680 2016-09-08 Eric Guzman 84 Completed
46 93 31014 2016-09-08 Daphne Preston 27 Completed
47 94 92194 2016-09-08 Ivy Vazquez 81 Completed
48 95 12336 2016-09-08 Teegan Jimenez 26 Completed
49 96 93197 2016-09-08 Quemby Floyd 88 Completed
50 97 74729 2016-09-09 Aristotle Harris 62 Completed
51 98 81261 2016-09-08 Abel Floyd 43 Completed
52 99 21141 2016-09-08 Liberty Gomez 32 Completed
53 128 5 2016-09-09 44 55 33
54 131 2222 2016-12-08 sdfsdfc 0 yxcyxc
55 134 20 2016-12-07 ason 200 ok
56 135 1 2016-12-15 qsd 0 0
57 138 444 2016-12-01 ppp 10 0
58 141 777 2019-02-19 a 7 k
59 142 777 2019-02-19 a 7 k
60 143 76778 2016-09-08 X 77 Pending
61 144 0 2019-02-14 sgaggsa 0 asggsa
62 145 11 2019-02-06 123 12 123
63 146 152447 2019-02-01 aaasss 55 ww
64 147 342 2019-02-07 gé"ger 34 vrea
65 148 30 2019-02-07 gé"ger 34 vrea
66 149 309999 2019-02-07 gé"ger 34 vrea
67 150 409999 2019-02-07 gé"ger 34 vrea
68 151 4 2019-02-05 ggg 4 fff
69 152 123 2019-02-01 Bommel 45 well done!
# ID Order no Order date Customer name Order amount Order status