- Impact
- 11
This is the code which im having problems with (its not all the code, so i am not missing the <?php, or a })
Im trying to get it to let you edit the information in the 'links' part of the database. The page before has this code:
The id is right and everything, but the page always shows it as blank. I had it working a long time ago, then kind of forgot about it and now it doesnt work.
Code:
$sql_query = "SELECT * FROM links WHERE id='$id'";
//store the SQL query in the result variable
$result = mysql_query($sql_query);
if(mysql_num_rows($result))
{
//output as long as there are still available fields
while($row = mysql_fetch_array($result))
{
$title = $row["title"];
$url = $row["url"];
$id = $row["id"];
$status = $row["status"];
$email = $row["email"];
}
Im trying to get it to let you edit the information in the 'links' part of the database. The page before has this code:
Code:
<a href=\"editlink.php?id=$id\">Edit</a>
The id is right and everything, but the page always shows it as blank. I had it working a long time ago, then kind of forgot about it and now it doesnt work.





