Hello all. So I am getting this buggy issue..
[code=php]PHP Fatal error: Call to undefined method PDOStatement::prepare() in /home1/harcerze/public_html/DB/confirm.php on line 222
Now the code in question is below….
[code=php]try {
$firstWORDPRESS = new PDO(‘mysql:host=localhost; dbname=*****’, ‘*******’, ‘******’);
$firstWORDPRESS->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
//Now gets ID info from wordpress to be able to insert into META-DATA
$grab = $firstWORDPRESS->prepare
(“SELECT
ID
FROM
wp_users
WHERE
user_email = ‘{$email}’
“);
//Executes this little SQL Statement
$grab->execute();
echo (“<p>Your abilites have been added to 1sza</p>”);
}
//Catches any errors that might have come from updating the wordpress login
catch (PDOException $ex) {
$msg = $ex->errorInfo;
error_log(var_export($msg, true));
die(“<p>Sorry, there was a unrecoverable database error with 1-SZA WordPress Account. Debug data has been logged.</p>”);
}
Now I only gave you the relevant part of the code, because the stuff ahead of this works with out an issue. Anyone see the issue?