Hi all,
I have what I beleive to be an 'easy to fix' problem:
Having re-installed PHP on our dev server, some code that worked before now, does not work:
$result = mysql_query("SELECT * FROM films WHERE uni = $uni");
This returns the following error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /data/web/warner/php/filmadmin/editfilm.php on line 4
Now, if I put a value in for the variable, as below, the error goes:
$result = mysql_query("SELECT * FROM films WHERE uni = 106);
So, I'm thinking that theres something in the PHP config file that can be changed, to change the way PHP accepts variables..
Can anyone help? :-)