Why wont it loop? (PHP and MySQL)

moammo

New Member
I wrote this code:\[code\]<?phpmysql_connect("localhost", "root", "root") or die("Could not connect: " . mysql_error());mysql_select_db("internal");$result = mysql_query("SELECT Title, Message FROM msg");?><?php while ($row = mysql_fetch_array($result, MYSQL_NUM)){?> <div> <h3><a href="http://stackoverflow.com/questions/3935099/#"><?php printf("%s", $row[0]); ?></a></h3> <div><?php printf("%s", $row[1]); ?></div> </div><?php mysql_free_result($result); }?>\[/code\]The result I
 
Back
Top