On 12 Mar 2004 Mike Mapsnac wrote: > I try to use quotes in the query and this doesn't work. > $query = "SELECT * FROM user WHERE user_id = '$_POST['user_id']}'"; > But you use brackets and it works.. Why do you use brackets ? > $query = "SELECT * FROM user WHERE user_id = ${_POST['user_id']}";
See http://us3.php.net/manual/en/language.types.string.php, scroll to the section called "Complex (curly) syntax". -- Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php