mysql_num_fields():提供的参数不是时间戳大于的有效MySQL结果资源

mysql is outputting this error

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=> '0000-00-01'' at line 1

here is my code

 foreach($tables as $table)
  {
    //SELECT Everything from the table in use
    $sql = "SELECT * FROM `".$table."` WHERE `timestamp` => '".$offline_time."'";
    $result = mysql_query($sql);
    echo mysql_error();
    //Return Number of fields/colulms in the table.
    $num_fields = mysql_num_fields($result);

//change : WHERE `timestamp` =>  to
WHERE `timestamp` >= 

Hope it works

I assume you mean >= not => for "equal or greater too"