|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
MySQL results display
I have a script where a user can connect to my MySQL server and view information in any of their databases. Problem I am having is that when I want to display the content of any one of their tables, I cannot place them neatly into a table.
I have worked out how to put the tables field names into a table using... $fields = mysql_list_fields("$userdbase", "$tbls"); $columns = @mysql_num_fields($fields); $content = "<div align="center">n"; $content .= "<table border="1" cellspacing="0" cellpadding="0"n>"; $content .= "<tr>n"; for ($i = 0; $i < $columns; $i++) { $headers = mysql_field_name($fields, $i) . "n"; $content .= "<td align="center" class="mainboxfont"><b>$headers</b></td>n"; } $content .= "</tr>n"; but am struggling to put the actual information from the table into new rows in the same table. I am using PHP templates which is the reason the code may look unusual. Any help appreciated. thanks |
|
#2
|
|||
|
|||
|
RE: MySQL results display
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > MySQL results display |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|