Database upgrade
From OpenEMR Project Wiki
Revision as of 05:28, 29 September 2016 by Scott Wakefield (talk | contribs) (Created page with "Upgrading ADODB to PDO. Remove all sqlFetchArray() calls. Example `$res2 = sqlStatement("select * from lang_languages where lang_description = ?",array($GLOBALS['language_defau...")
Upgrading ADODB to PDO.
Remove all sqlFetchArray() calls.
Example `$res2 = sqlStatement("select * from lang_languages where lang_description = ?",array($GLOBALS['language_default'])); for ($iter = 0;$row = sqlFetchArray($res2);$iter++)
$result2[$iter] = $row;`
Becomes `$result2 = sqlStatement("select * from lang_languages where lang_description = ?",array($GLOBALS['language_default']));`