Re: SoS
| From: | Jason Godesky | Date: | Mon, 06 Oct 2003 00:52:01 +0000 |
| Subject: | Re: SoS | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-30859@lists.php.net to get a copy of this message | ||
Your if statement will only be TRUE if $id is set to FALSE, NULL or zero (0)--I think you're looking for if the variable is set. That would be: if (isset($id))
--
Jason Godesky
jason@tribaldawn.com
http://www.tribaldawn.com/jason/
> I'm a beginner of PHP. While trying the code from
> a tutorial, I encountered the following problem.
>
> The variable $id can not be transfered to my server.
> You can find the code at the end of this email. When
> I visit http://mydomain.com/test.php?id=1
> it always shows the list of the database instead
> of a perticular record.
>
> I appreciate your kind helps!
>
> Zhan Xu
> EECS Department
> Case Western Reserve University