
August 1st, 2002, 05:01 PM
|
|
|
|
Join Date: Apr 2007
Posts: 1
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Problem with ID's
My problem is ID's don't display on links.php page but they do display when clicked on in Updates Section...My code is as follows:
$query = "SELECT id, head, content FROM links WHERE id = '$id'";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
if (mysql_num_rows($result) >= 0)
{
while($row = mysql_fetch_object($result))
{
?>
<tr><td width=5 height=10></td><td></td></tr>
<tr><td width=5></td><td><font color="#6697C4"><b><? echo $row->head; ?></b></font></td></tr>
<tr><td width=5></td><td><a href="http://<? echo ($row->content); ?>" target=new>http://<? echo ($row->content); ?></a></td></tr>
<?
}
}
|