954,148 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

I need some help with a php table

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

Tsunami
Newbie Poster
6 posts since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

[PHP]
<?php
echo "";
$query = mysql_query("SELECT col1, col2 FROM example");
while(list($col1, $col2)) = mysql_fetch_row($query)){
echo "
$col1
$col2
";
}
echo "";
?>
[/PHP]

Hope this is what you want

PoA
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You