Hi All,
I am having a major issue with an install - so close but so far away!!
OK I have installed Apache, PHP module, MySQL on a Windows 2000 and a 98 machine ( I know WINDOWS!!!) I have done this sucessfully before on another 98 machine so I can't see what the problem is.
Now when I do this in the browser
http://localhost/3q/test.php
The first example should be:
$sql2 = "SELECT id,name FROM 3q_nav";
this is fine ...
however when I do this in the browser
http://localhost/3q/test.php?id=1
and run this code
$sql2 = "SELECT id,name FROM 3q_nav WHERE id = $id";
I get an error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL
result resource in c:\program files\apache
group\apache\htdocs\3q\test_2.php on line 16
Somewhere in my config files I am disallowing the WHERE or not picking up
the $id from the URL
I have checked the http.conf files buit can't seem to see any difference.
I would really appreciate any solutions
NOTE: It is not the code because it works fine on another machine - I can't even do a simple echo from the URL
Thanks for your assistance
All the best
Lisa