Delete Where UserID=($_GET['UserID']) AND Rating=ISNULL
How do you add a 2nd filter containing a null statement?
Here is the full code.
<?php
if ((((isset($_GET["btn1_x"]))?$_GET["btn1_x"]:"") != "")) {
$DeleteQuery = new WA_MySQLi_Query($xxx);
$DeleteQuery->Action = "delete";
$DeleteQuery->Table = "tblRatings";
$DeleteQuery->addFilter("UserID", "=", "i", "".($_GET['UserID']) ."");
THIS LINE -------> $DeleteQuery->addFilter("Rating", "=", "s", "''");
$DeleteQuery->execute();
$DeleteGoTo = "";
if (function_exists("rel2abs")) $DeleteGoTo = $DeleteGoTo?rel2abs($DeleteGoTo,dirname(__FILE__)):"";
$DeleteQuery->redirect($DeleteGoTo);
}
?>
tblRatings.Rating is a string, so I put an s. Is that right?