Parse error: syntax error, unexpected T_VARIABLE

ambercaribou

New Member
I have a website that has not been touched for at least a year. All of the sudden I'm getting this error message:Parse error: syntax error, unexpected T_VARIABLE in D:\Hosting\xxxxxx on line 22The code on that line looks like this: \[code\]$theValue = http://stackoverflow.com/questions/14064421/($theValue !="") ? doubl$query_rs_get_categories = "SELECT * FROM talent_master_categories ORDER BY master_category_priority ASC";\[/code\]Here's the full snip of code from that page:\[code\]<?phpif (!function_exists("GetSQLValueString")) {function GetSQLValueString($theValue, $theType, $theDefinedValuehttp://stackoverflow.com/questions/14064421/= "", $theNotDefinedValuehttp://stackoverflow.com/questions/14064421/= "") { if (PHP_VERSION < 6) { $theValue = http://stackoverflow.com/questions/14064421/get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = http://stackoverflow.com/questions/14064421/($theValue !="") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = http://stackoverflow.com/questions/14064421/($theValue !="") ? intval($theValue) : "NULL"; break; case "double": $theValue = http://stackoverflow.com/questions/14064421/($theValue !="") ? doubl$query_rs_get_categories = "SELECT * FROM talent_master_categories ORDER BY master_category_priority ASC";$rs_get_categories = mysql_query($query_rs_get_categories, $conn_talent) or die(mysql_error());$row_rs_get_categories = mysql_fetch_assoc($rs_get_categories);$totalRows_rs_get_categories = mysql_num_rows($rs_get_categories);?>\[/code\]Any ideas what is going on? I'm not sure why it would stop working all the sudden.Thanks for any advice
 
Back
Top