/ Published in: PHP
URL: http://phplens.com/adodb/
It uses a variable with a RecordSet from a ADOdb Library (Library must be downloaded). db_query PHP Functions can be used to have the REcordSet(http://snipplr.com/view/59379/dbquery-php-function-for-ddbb-queries-with-adodb-library/)
Then uses ADODB php library functions and properties for fill the tables with the data of the RecordSet.
Expand |
Embed | Plain Text
<table> <thead> <tr> <?php for($k=0; $k<= $RecordSet->FieldCount( ) -1 ; $k++){ $field = $RecordSet->FetchField($k); } ?> </tr> </thead> <tbody> <?php while( !$RecordSet->EOF){ echo"<tr>"; for($k=0; $k<= $RecordSet->FieldCount( ) -1 ; $k++){ } echo"</tr>"; $RecordSet->MoveNext(); } ?> </tbody> </table>
You need to login to post a comment.
