26.07.2013, 12:26
Okay im trying to get the id from the database and set the link to that ID
this is what i got:
This is the thing i am using in the table:
But im getting this warning:
this is what i got:
PHP код:
$sql = "SELECT * FROM Clubs";
$rs_result = mysql_query ($sql,$connection);
$id = mysql_fetch_row($sql, $connection);
$totalIds = $row[0];
PHP код:
<td><? echo "<a href='Clubs.php?id=".$TotalIds."'>" . $row["Name"] . "</a>"; ?></td>
Код:
Warning: mysql_fetch_row() expects parameter 1 to be resource, string given in /home/ws02775/public_html/Clubs.php on line 57