Calling class_DbConnect::prepare on a SQL statement.

16 views
Skip to first unread message

alexan...@gmail.com

unread,
May 29, 2014, 6:36:32 AM5/29/14
to apns...@googlegroups.com
Hello,

for instance, there is a query

$update_timestamp_query = "update $register
                           set $register_table_iteration_timestamp_field_name = now()
                           where $register_table_id_field_name in (" . implode(',', $identifiers) . ");";

Calling 

$update_timestamp_query = $db->prepare($update_timestamp_query);

and executing the query

$db->query($update_timestamp_query)

yields MySQL error since there're \n symbols in the SQL query output.


Reply all
Reply to author
Forward
0 new messages