armia armia - 1 year ago 105
PHP Question

wordpress sql error in one page ( my account)

error in "my account " page only

I installed a theme " directorypress" to my wordpress site, all woks fine except when I click my account page I get this error.
did any one go through this issue before

wordpress version 4.2.2

pages attached to the following link
pages in the error

Answer Source

Change the following lines

$result = mysql_query($SQL, $wpdb->dbh) or die(mysql_error().' on line: '.__LINE__);
$result = mysql_query($wpdb->dbh,$SQL) or die(mysql_error().' on line: '.__LINE__);

and use mysqli

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download