Hi all,
I have an issue with an sqlo statement, can any one see where I have gone wrong:
The error I am getting is:
Warning: sprintf(): Too few arguments in /home/vhosts/mydomain/httpdocs/cms/modules/iclean/index.php on line 85 Query was empty
$colname_Inspections = "-1";
if (isset($_SESSION['member_id'])) {
$colname_Inspections = $_SESSION['member_id'];
}
mysql_select_db($database_flightq, $flightq);
$query_Inspections = sprintf("SELECT InspectAuditedby, InspectRoomNo, DATE_FORMAT(InspectDate, '%m/%d/%Y') FROM RoomAuditResult WHERE InspectDate BETWEEN CURDATE() - INTERVAL 30 DAY AND CURDATE() ORDER BY InspectDate ASC", GetSQLValueString($colname_Inspections, "int"));
$Inspections = mysql_query($query_Inspections, $flightq) or die(mysql_error());
$row_Inspections = mysql_fetch_assoc($Inspections);
$totalRows_Inspections = mysql_num_rows($Inspections);