Displaying MYSQL Results

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
dinno2
Forum Newbie
Posts: 9
Joined: Sun Aug 11, 2002 10:25 am

Displaying MYSQL Results

Post by dinno2 »

Simple question, I cant find any documentation on displaying The output of my php script, that retreives data from mysql.
What i mean is, the script draws infro from the database, then displays it at the top of a new page, Is there a way to have that information displayed on a pre defined HTML table?
The page in question is http://www.thevirtualpilotplanner.com/searchform.html
Thank You!
Michael
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

what do you mean with "pre-defined"? is

Code: Select all

...
while($row=mysql_fetch_row($result))
{
   print('<tr class="searchRow">');
   foreach($row as $value)
      print('<td class="searchCell">'.$value.'</td>');
   print('</tr>');
&#125;
...
sufficient?
Post Reply