After selecting the record with the current KEY and PROGRAM, I want to update the 'log_info' field for that CURRENT record, inputting the date/time. However, I keep getting the 'die error' for the update code.
ERROR CODE:
"Warning: mysql_query() expects parameter 1 to be string"
(for the "$log_info = mysql_query($query,"UPDATE..." code)
Snippet
$query = mysql_query("SELECT * 
                      FROM `product_keys` 
                      WHERE `serial_key` = '".$key."' 
                          AND `program` = '".$prog."' LIMIT 1") or die('error selecting');
// UPDATE 'log_info' value to the latest date and time
$time = time();
 $log_time = date('Y-m-d g:i:sa',$time);
 $log_info = mysql_query($query,"UPDATE 'product_keys' 
                                    SET 'log_info' = '".$log_time."' 
                                    WHERE `serial_key` = '".$key."' 
                                        AND `program` = '".$prog."' LIMIT 1") or die('log error'); 
     
     
     
     
    