<? $pagetitle="Add a Link"; include("../include/head.php"); echo $harsss; ?> <tr><Td> <FONT SIZE=+1><center><B>-test-</b><BR></font></center>"; <? $sql="SELECT * FROM link ORDER BY linkid ASC LIMIT 0,30"; $result=mysql_query($sql); while ($myrow=@mysql_fetch_array($result)) { echo "<b>".$myrow["linkid"].": ".$myrow["linkurl"]."</b>: ".$myrow["linkdesc"]."<br>"; } echo "<P>; ?> </tr></td> <? include("../include/foot.php"); ?>
By the way... I put that on a page and it's supposed to access the database and then put what ever is in the "link" table (i.e. desc, id, name) on that page. Whem I put that on the page it says parse error.
Were you sure to connect to the server and select the database etc?
Just a thought.
If there's a parse error it is on line 14
you need to close the string with a double quote:
echo "<P>;
becomes
echo "<P>";
I hate it how just one little thing will mess up your whole page. Thanks laserlight.