내 eval 코드의 문제는 어디에 있습니까 ??? 아파치가 을 말했기 때문에 :eval() - eval() 'd 코드의 구문 분석 오류
Parse error: syntax error, unexpected T_STRING in E:\xampp\htdocs\1php\mas_res\inc\mysql_class.php(120) : eval()'d code on line 1
내 코드 :
$type1 = "row";
$query1 = mysql_query("SELECT * FROM table");
$textToEval = "mysql_fetch_{$type1}($query1);";
$query = eval($textToEval);
그리고 올바른 모드가 무엇입니까?
감사합니다 ..
'$ textToEval'을 출력하고 질문에 추가하십시오. – jondavidjohn