vendredi 1 mars 2019

laravel does not do update in the bank

the following error is occurring when trying to perform update on a specific field in the database

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 'or der=5 WHERE id=34;

\DB::table('action')
             ->where('id','=','34' )
             ->update(array('order'=>'5'));

I am try order, 'order', "order","order".



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire