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;
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?
- The topic ‘Passing $_GET data to a query’ is closed to new replies.