MySQL Forums
Forum List  »  Newbie

Re: Newb help :(
Posted by: Claude Martin
Date: March 28, 2005 02:13AM

NULL should be ok for an auto_increment. but you dont need that anyway!
i think the problem is that the values themself are not in quotes.

$name = addshashes($name);
$address = addshashes($address);
$city = addshashes($city);
$county = addshashes($county);
$state = addshashes($state);
$email = addshashes($email);

$query = "INSERT INTO `trackpet` (`name`, `address`, `city`, `county`, `state`, `email`) VALUES('$name', '$address', '$city', '$county', '$state', '$email')";
$result = mysql_query($query) or die(mysql_error());

http://animalliberation.tk http://veganismus.ch
http://maqi.de http://tierrechtskochbuch.de

Options: ReplyQuote


Subject
Written By
Posted
March 27, 2005 08:29PM
March 27, 2005 11:00PM
March 27, 2005 11:35PM
Re: Newb help :(
March 28, 2005 02:13AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.