我有一個網站至少一年未觸及。上線\主機\ XXXXXX 22解析錯誤:語法錯誤,意外T_VARIABLE
在該行的代碼看起來是這樣的:所有的突然我收到此錯誤信息: 解析錯誤:語法錯誤,在d意外T_VARIABLE
$theValue = ($theValue != "") ? doubl$query_rs_get_categories = "SELECT * FROM talent_master_categories ORDER BY master_category_priority ASC";
以下是該頁面的完整代碼段:
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = 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 = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($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);
?>
任何想法是怎麼回事?我不知道爲什麼它會突然停止工作。 感謝您的任何意見
使用語法highlighing的編輯器。很明顯。 – mario
什麼是'?雙重$ query_rs_get_categories ='應該是? – CodeZombie
至少有3個錯誤,我看到 –