At 16:19 17-6-03, you wrote:
$sql = 'select * from db where apple = \'' . $_POST['foo'] . '\';';
Like that?
you missed some quotes:
  $sql = 'select * from db where apple = \''' . $_POST['foo'] . '\'"';


> A side question along with this ,,, how can I include $_POST['foo'] in the
> :
> $sql ="select * from db where apple = '$_POST['foo']' ";
or
$sql = "select * from db where apple = \"$_POST['foo']\" ";
or
$sql = "select * from db where apple = \"{$_POST['foo']}\" ";
where the {braces} help PHP to distinguish begin and end of an array within double quoted strings





-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to