Hey everyone

I am trying to connect to more the one table under the same database name but for some reason it does not work. I have checked all the names and the echos are all correct. Could you help me out?



<?php

$con = mysql_connect("localhost", "*********", "*******");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("donavons_demos", $con);

$tb1 = mysql_query("SELECT * FROM demo_default");
$tb2 = mysql_query("SELECT * FROM demo_site");

while($row = mysql_fetch_array($tb1)){
while($rows = mysql_fetch_array($tb2)){
?>
<? echo $row['code'];?>
<? echo $rows['code'];}}?>