Database upgrade

From OpenEMR Project Wiki
Revision as of 05:38, 29 September 2016 by Scott Wakefield (talk | contribs)

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']));