$SQLQ = $empire->query ("Select Infotags,id from hd_ecms_shop_data_1 WHERE hd_ecms_shop_data_1.infotags like '% Dear% '" );
$result = $empire->fetch ($SQLQ);
Print_r ($result);//This step can print out values to
if ($empire->num ($result))
foreach ($result as $value) {
if (Isset ($result [' ID ']))
$idStr. = $result [id]. ', ';
};
$idStr =rtrim ($idStr, ', ');
echo $idStr; exit;
?>
Error tip: Warning:mysql_query () expects parameter 1 to is string, array given in
D:\WWW\dgcms\e\class\db_sql.php on line 15
The above code, I do not know where there is a problem
Reply to discussion (solution)
You take this statement to MySQL to see if it's correct
Error when you call the $empire->query () method to query the SQL statement, there is a warning, you input to mysql_query () is not a string but an array ....
This error should occur in the class that generated the $empire object, and the code here does not show