Hi All,

Can you please help me with the following problem? I've had code wich was running fine 
with php till i've upgraded to PHP version 4.2.3.

The original code line was:

$query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '$id'";

but it's not working when you have register_globals=Off
So i've read everywhere to use the $_Get:

So the code looks like this:

$query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = $_GET['id']";

But all i'm getting in my browser is:

parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' 


Can someone please help?

Thanks and regards,

Frank

Reply via email to