I have use the PHP code of nuBuilderPro documentation to do a test:
Code: Select all
$sql = "SELECT * FROM customer WHERE customer_id = '1'";
$qry = nuRunQuery($sql);
$obj = db_fetch_object($qry);
print " customer name: $obj->cus_name
customer phone: $obj->cus_phone
customer email: $obj->cus_email";
Code: Select all
===USER==========
===PDO MESSAGE===
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE = '53566d4e5e43280'' at line 1
===SQL===========
SELECT * FROM WHERE = ?
===BACK TRACE====
/data/intranet/pybrequests/nucommon.php - line 500 (nuRunQuery)
/data/intranet/pybrequests/nucommon.php - line 458 (nuRecordArray)
/data/intranet/pybrequests/nuapi.php - line 16 (nuHashData)
Could you please advise id using "nuRunQuery($sql)" is the issue?
Thank you.