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
https://forums.phpfreaks.com/topic/54357-solved-problem-with-_get/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.