Jump to content

My Cron Job Doesnt Work


deep958

Recommended Posts

i make my cron job file in php code and upload it . but it doesnt work

my cron job file is this :

 

 

<?php
$con=mysqli_connect("localhost","name","pass");
mysqli_select_db($con,"table");
$t=time();
$a=mysqli_query($con,"select * from signup");
$anum=mysqli_num_rows($a);
for($i=1;$i<=$anum;$i++)
{
$arow=mysqli_fetch_array($a);
$avalid=$arow['valid'];
$email=$arow['email'];
if($avalid<$t)
{
mysqli_query($con,"delete from signup where email='$email'");
}
}
?>

 

 

 

plz help me to solve my problem

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...