On Saturday, June 1, 2002 at 6:00:22 PM, you wrote: > $query = "INSERT INTO friends (id, firstname, surname) values >(nextval('friends_id_seq'), ".$_POST['firstname'].", ".$_POST['surname'].")";
It's so obvious you're gonna kick yourself (I did!). You need to enclose the two values in quotes, like so... $query = "INSERT INTO friends (id, firstname, surname) values (nextval('friends_id_seq'), '".$_POST['firstname']."', '".$_POST['surname']."')"; -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php