943,590 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 77106
  • PHP RSS
Jul 29th, 2004
0

I need some help with a php table

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Tsunami is offline Offline
6 posts
since Jul 2004
Jul 30th, 2004
0

Re: I need some help with a php table

[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
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: BB Code Tutorial
Next Thread in PHP Forum Timeline: Urgent help with "echo" properties





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC