Search code examples
phpasp.netgridviewsqldatasource

PHP equivalent of ASP.NET SqlDataSource


Last night I was doing a GridView combined with SqlDataSource in Visual Studio for my school project. Usualy I use PHP for web development, but that combination is really powerful, so I would like to know if there exists a PHP class that would implement the same idea as is SqlDataSource + GridView in ASP.NET?


Solution

  • You might want to look at something like PhpGrid:

    http://phpgrid.com/example/example-1-a-basic-php-datagrid-2/

    $dg = new C_DataGrid("SELECT * FROM orders", "orderNumber", "orders");
    $dg -> display();