can anyone see why this is not working ?
$db2 = mysql_connect("localhost", "root", "xxxxx");
mysql_select_db("prod",$db2);
$edref = "aaaaa" // this is the value. ive checked
$qry = mysql_query("SELECT * FROM br_comp WHERE ref = '$edref'", $db2);
while($row = mysql_fetch_array($qry)){
$ref_code = $row["ref"];
$source = $row["source"];
$subject = $row["subject"];
$compname = $row["compname"];
$submit = $row["submit"];
$url_string = "&update=yes";
}
error: Supplied argument is not a valid MySQL-Link resource
I have ran the SQL direct to MySQL and its fine (returns 1 result), the case is fine ??