Results 1 to 5 of 5
Thread: is this statement right ?
Jan 24, 2010, 22:52 #1
is this statement right ?Code:
$q = $dbh->query("SELECT dish,price FROM meals WHERE meal LIKE '" . $_POST['meal'] ."'");
institutions,some use '',and some use " ",i don't know which is right ?
in the above it uses " behind LIKE,i think it's wrong,and the right is
LIKE ' $_POST['meal'] '"); am i right ?