Jump to content

mysql help needed


marcus

Recommended Posts

i am making a shoutbox, and when i want to echo/print off the rows in the table it keeps printing thousands of commas

code:

[code]
<?php
include('mysql.php');
$sql = "SELECT * FROM shoutbox";
$res1 = mysql_query($sql);
echo "<tr><td>";
echo "<div style='border:0px solid black; height:200px; width:130px; overflow:auto; font-family:verdana;font-size:10pt;color:black;'>";
while("$res2 = mysql_fetch_assoc($res1), MYSQL BOTH"){
printf ("<a href='$res2[website]'>$res2[name]</a><br>$res2[message]");
};
mysql_free_result($res1);
?>
[/code]

help?
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.