I have two table called tbl_users
and tbl_img_status
. I have column in tbl_img_status
like below
id, user_id,status_text, scd_time,status,post_time
I am looking for run cron using PHP for publish post on time. So I have query like below
$results = mysqli_query($mysqli,"UPDATE tbl_img_status SET post_time=NOW(),status=1 WHERE status=0 AND scd_time<NOW()");
Now My issue is I also need to update tbl_users column called total_post. I want increase 1 in total_post of that user id which we have published with first query. I am new in PHP and MYSQL so not getting proper idea for do it. Let me know if someone can help me for it.