I've been racking my brains for this all afternoon. Ive search various forums and web sites and nothing seems to be working right.
This is the SQL query that i got help with earlier from a member on Stackoverflow and works perfectly in phpmyadmin SQL query window
UPDATE members SET  `status` = IF( (
SELECT monday_ashore
FROM system
WHERE id =  '1'
) =  'Yes',  'ASHORE',  `status` );
and this is the code that i have in the php script:
//Monday Force All Ashore Cron Page <?php
include ("../config/db_connect.php");
$sql = ("UPDATE members SET  `status` = IF( (
SELECT monday_ashore
FROM system
WHERE id =  '1'
) =  'Yes',  'ASHORE',  `status` ");
?>
This script is set to be a CRON script. how do i get it to run by navigating to it through web site for testing and for it to actually work. What am i doing wrong or missing, any help would be greatly appreciated.
 
     
    