Re: running a script
| From: | Matthew Sims | Date: | Tue, 03 Aug 2004 20:14:01 +0000 |
| Subject: | Re: running a script | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192607@lists.php.net to get a copy of this message | ||
> Thanks for the tips.
>
> After clicking
> http://www.mydomain.com/processForm.php?id=<some id> is
> 'id'
> a variable containing 'some id'. Can I access that by '$id'
>
> I am just trying to figure out how to write the SELECT statement for that
> script. I am guessing, but I would do:
> "SELECT * FROM temp_users WHERE ID=$id"
>
> Thanks again.
>
> Aaron
>
More like:
"SELECT * FROM temp_users WHERE ID=\"".$_GET["id"]."\"";
Use $_GET to access variables from the url.
--
--Matthew Sims
--<http://killermookie.org>