My cron job is sending this error on the email
From the php code (gonna post just a part of it)
I'm getting this error, what's wrong with the command?
Code:
<br /> <b>Warning</b>: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in <b>/home/xhost/public_html/portal/remindtrial.php</b> on line <b>19</b><br /> Trial reminders sent!
From the php code (gonna post just a part of it)
Code:
$sql_gettrial = "select orderid,userid from tblhosting where DATEDIFF(now(),regdate)=$remind_trial_days and (packageid=23)";
$rs_gettrial = mysql_query($sql_gettrial);
while($row = mysql_fetch_array($rs_gettrial, MYSQL_ASSOC))
{
$orderid = $row['orderid'];
$userid = $row['userid'];
$rs_getemail = mysql_query("SELECT email FROM tblclients WHERE id = ".$userid."");
$ada_email = mysql_numrows($rs_getemail);
while($rowemail = mysql_fetch_array($rs_getemail, MYSQL_ASSOC))
{
$mailme = $rowemail['email'];
I'm getting this error, what's wrong with the command?
Comment