Passing $_GET data to a query
-
Just like it sounds, I have a script passing a user name to the next page using the header redirect;
https://www.mydomain.com?id=$user_id
So what is the syntax to get that variable into a query string like;
“(SELECT firstname, lastname, email from tablename WHERE id = ‘$_GET[id]’)”;
I tried it just like that and no dice. Dos it need echo’d or placed into another variable first?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Passing $_GET data to a query’ is closed to new replies.