Hi, I am doing something like
$g->select_command = “SELECT customer_id, city FROM customers WHERE customer_id = ‘ALFKI'”;
When I try update a field, I get an error message.
But if I select using $g->table = “customers”;
I have no issues.
I need to use a SQL statement to return some records and then be able to update them.
How is this accomplished?
Thanks,
1 Answers
Hi, You need to set table property in both cases. The select_command is not the replacement of table property. It will just override the select * from table query.
Your Answer