547reads

Variable Mysteriously Stops Echoingview story

Hi, I'm working on a page that GETs a value that is passed in the URL. This variable echos correctly up until I try echoing it inside an if statment where it needs to be. The variable is called $siteid. Inside my if statement I have a query that runs WHERE id='$siteid' Inside this if statement it won't echo out. It is the weirdest thing. I tried to hardcode the siteid as 95, to test it, and the query updated my database as it should. However, leaving it as the variable it will not work. Any help solving this mystery that I've been banging my head over fo

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.
CAPTCHA
Human?
Image CAPTCHA
Enter the characters shown in the image.