Skip to navigation
How to make older mysql php code compatile with mysql5
07.12.13
n include/func.php ... function db_query($query) { # mysql5 fix-up if (preg_match('/SELECT .* FROM .* LEFT JOIN/',$query)) { $query = preg_replace('/ FROM /',' FROM ( ',$query); $query = preg_replace('/ LEFT JOIN /',' ) LEFT JOIN ',$query,1); } # mysql5 fix-up END global $debug_mode; global $mysql_autorepair; ...
Reply
Anonymous
How to make older mysql php code compatile with mysql5
n include/func.php ... function db_query($query) { # mysql5 fix-up if (preg_match('/SELECT .* FROM .* LEFT JOIN/',$query)) { $query = preg_replace('/ FROM /',' FROM ( ',$query); $query = preg_replace('/ LEFT JOIN /',' ) LEFT JOIN ',$query,1); } # mysql5 fix-up END global $debug_mode; global $mysql_autorepair; ...
07.12.13
Reply
Anonymous
Information Epoch 1732394432
Avoid hand-hacking, write programs to write programs when you can.
Home
Notebook
Contact us