php - Call to a member function processqueue() on a non-object -
php - Call to a member function processqueue() on a non-object -
i'm trying run file, file sends emails , updates tables etc (various tasks). but, i'm getting error fatal error: phone call fellow member function processqueue() on non-object in /home/novosctn/public_html/user/cron_email_handler.php on line 14
i've gone through various questions here none of them helped me. wrong doing ?
any suggestions appreciated.
db structure
indexid(int unsigned) others 1 xyz 2 asa
the file.
<?php include 'dbconnector.php'; include 'class/class.user.php'; //this file loop through queued rows in messagequeue , process them. //first, unprocessed queue. seek { $statement = $conn->query("select * messagequeue currentstatus = 'queued'"); $statement->setfetchmode(pdo::fetch_obj); while($q = $statement->fetch()) { //now process if($user->processqueue($q->indexid)) { //$user->notifyadmin(); //$user->notifyuser(); $i=2; //notify admin of successful queue finish //notifyuser particular queue not completed. echo $q->indexid . "was completed"; } else { $i=1; //the particular que not completed. //notify admin echo $q->indexid . "was not completed"; } } } catch(podexception $e) { echo $e->getmessage(); } ?>
php mysql
Comments
Post a Comment