Hi all,
I'm trying to insert 2 queries into a 2 tables on the same page, using the results as the data for the checkbox info.
I keep getting a parse error on line 4 -> $re1 = mysql_query
Its probably something simple but i cant see it. I use similar code for both queries.
<?php
$db = mysql_connect("localhost", "root"
mysql_select_db("fjc",$db);
$res1 = mysql_query("SELECT * FROM admissions",$db);
$myrow = mysql_fetch_array($res1);
$admis_id = $myrow["admis_id"];
$admission = $myrow["admission"];
echo "
<table width=\"100%\" align=\"center\" border=0>
<tr>
<td><span class=\"text\"><input type=\"checkbox\" name=\"admissions\" value=\"$admis_id\">$admission</span></td>
</tr>
</table>
\n";
?>
Thanks for your help,
Dunskii
I'm trying to insert 2 queries into a 2 tables on the same page, using the results as the data for the checkbox info.
I keep getting a parse error on line 4 -> $re1 = mysql_query
Its probably something simple but i cant see it. I use similar code for both queries.
<?php
$db = mysql_connect("localhost", "root"
mysql_select_db("fjc",$db);
$res1 = mysql_query("SELECT * FROM admissions",$db);
$myrow = mysql_fetch_array($res1);
$admis_id = $myrow["admis_id"];
$admission = $myrow["admission"];
echo "
<table width=\"100%\" align=\"center\" border=0>
<tr>
<td><span class=\"text\"><input type=\"checkbox\" name=\"admissions\" value=\"$admis_id\">$admission</span></td>
</tr>
</table>
\n";
?>
Thanks for your help,
Dunskii