mysql - Multiple UPDATEs and INSERTs with PHP/MySQLi -


i need reconcile between existing set of tables , new/changed information on regular basis, , have set of ~30 update/insert operations has run every time. since 'mysql_query' deprecated, , i'd prefer not recode in oo, there reasonable procedural way run of these in sequence without having call 'mysqli_free_result()' after every single one?

just record, i've tried running them set of mysqli_query statements without mysqli_free_result(), , it's mess: of operations go through while others fail silently. frankly, shell script bunch of 'mysql -e' commands in more reliable... needs web-driven app, that's not viable anymore.

your assumptions wrong.

mysqli_query's behavior similar 1 of mysql_query , don't need other modifications. neither mysqli_free_result() related problem.

the meaningful part of question queries fails silently. make them fail noisily, tell mysqli so. add line before mysqli_connect

mysqli_report(mysqli_report_error | mysqli_report_strict); 

and first query fails tell reason.

but in general, there not single problem running multiple update , insert queries using mysqli_query().


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -