SELEACT statement
Hey Ray
Further to the prem ticket yesterday, how do I correctly structure this SELECT statement
$query_ProductOptions = "SELECT * FROM product_options";
if (isset($_POST['Option'])) {
$query_ProductOptions .= " WHERE OptionID = " . intval($_POST['Option']);
}
to be this (which I must have a syntax error in as it doesnt sort or filter if record is live / not live
$query_ProductOptions = "SELECT * FROM product_options";
if (isset($_POST['Option'])) {
$query_ProductOptions .= " WHERE OptionID = " . intval($_POST['Option']) . " AND Live = 1 ORDER BY OptionOrder ASC";
}
cheers