Re: SoS
| From: | zxx10 at cwru dot edu | Date: | Mon, 06 Oct 2003 01:22:09 +0000 |
| Subject: | Re: SoS | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-30862@lists.php.net to get a copy of this message | ||
Hi, Shahmat:
Thank you very much!
Yes, I use "echo phpinfo()" and found out that
"register_globals" has been turned off. How can
I turned it on? Do I need to recompile the Php?
I also tried "if (isset($_GET["id"])) and
found out that $id is NULL. So, there will
be an error in the SQL statement.
Zhan Xu
EECS Department
Case Western Reserve University
----- Original Message -----
From: Shahmat Dahlan <shahmatd@sains.com.my>
Date: Monday, October 6, 2003 6:07 am
Subject: Re: [PHP-DB] SoS
> if the statement "if (isset($id)) doesn't probably it because
> register_globals has been turned off maybe?
>
> How about "if (isset($_GET["id"]))" ?
>
> zxx10@cwru.edu wrote:
>
> >Hi, Jason:
> >
> >Thank you very much for your quick reply. I tried
> >the if (isset($id)) but it doesn't work. Any
> >thoughts?
> >
> >By the way, I'm using Php4.3.3 and MySQL4.0.15a.
> >The tutorial I'm reading is about Php3. Will this
> >be the problem?
> >
> >Many thanks.
> >
> >Zhan Xu
> >EECS Department
> >Case Western Reserve University
> >
> >----- Original Message -----
> >From: Jason Godesky <jason@tribaldawn.com>
> >Date: Monday, October 6, 2003 5:52 am
> >Subject: Re: [PHP-DB] SoS
> >
> >
> >
> >>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
> >>>
> >>>
> >>--
> >>PHP Database Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >>
> >>
> >>
> >
> >
> >
>