Help for this page
if ($x>10) { $query="(select Name from Customers where CustId='$custid')" ... $query="(select Name from Sales where SalesId='$salesid' and CustId='$custid')" }
$sth->execute(?)
$sth->execute(?,?)