RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 27704 | Replies: 1
Reply
Join Date: Jul 2004
Posts: 6
Reputation: Tsunami is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Tsunami Tsunami is offline Offline
Newbie Poster

I need some help with a php table

  #1  
Jul 29th, 2004
Hello again.I am trying to make a php table with a list of items going down with the cost of any thing.If some could please type yo a simple php table script for me.I be thanks full to who ever does.

Thanks Jon
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Jul 2004
Posts: 227
Reputation: PoA is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 6
PoA PoA is offline Offline
Posting Whiz in Training

Re: I need some help with a php table

  #2  
Jul 30th, 2004
[PHP]
<?php
echo "<table>";
$query = mysql_query("SELECT col1, col2 FROM example");
while(list($col1, $col2)) = mysql_fetch_row($query)){
echo "
<tr>
<td>$col1</td>
<td>$col2</td>
</tr>";
}
echo "</table>";
?>
[/PHP]

Hope this is what you want
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:32 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC