Re: pass var through URL String
| From: | Gary | Date: | Thu, 19 Sep 2002 23:13:03 +0000 |
| Subject: | Re: pass var through URL String | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116944@lists.php.net to get a copy of this message | ||
I was wrong, it is passing $bname. I have got it down to a syntax error by using.
$sql = "SELECT * FROM bugs WHERE bname = {$_GET['bname']}";
gary
Gary wrote:
I don't think it is being passed. I think I am going to have to figure out how to pass bname in the link using pear.With pear bnname=0 while ($row = $res->fetchRow()){$bname = $row[0]; $owner = $row[1]; echo " <li><a href=\"temp_page.php?bname=$bname\">$bname</a> by $owner<li> ";} Gary Kevin Stone wrote:There's obviously something wrong with the way you're handeling the new variable. Do extract($_GET); and go back to the way you were handeling it before. echo $bname; -Kevin