Jump to content

[SOLVED] problem with $_GET


reddavis999

Recommended Posts

Im trying to send the id information over with $_GET, ive used it before in a website ive recently completed but this time its not working. Heres the code that the search form displays

 

 if ($count>0) {
while ($row = mysql_fetch_array($search)) {
	echo '<p>Episode: '.$row['episode'].'<br>Beer: '.$row['beer'].'</p>';
	echo '<p><a href=\"moreinfo.php?id=$row[id]\">Read More...</a>';
	echo '<br><hr 50%>';

}
}else {
echo "no results available";
}
?>

 

However when i click on 'Read more' it goes to this address

 

%22moreinfo.php?id=$row[id]\%22

 

I dont understand why it does this.

 

Thanks,Red

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.