$query1 = "SELECT * FROM vtiger_crmentity WHERE orderdetailsid=" . $orderdetailsid;
$query2 = "UPDATE vtiger_crmentity SET createdtime=NOW(),modifiedtime=NOW(),viewedtime=NOW() WHERE orderdetailsid=" . $orderdetailsid;
$result1 = mysql_query($query1); echo mysql_error();
$result2 = mysql_query($query2); echo mysql_error();
似乎不起作用。有任何想法吗?