MySQL Forums
Forum List  »  Newbie

Newb help :(
Posted by: Tom Camp
Date: March 27, 2005 08:29PM

Can someone tell me why this doesn't work. I've been pulling my hair out for a couple of hours now and am at my wits end.


mysql_connect("$host", "$userName", "$pword") or die('Could not connect: ' . mysql_error());

mysql_select_db("pmmotoco_p_pet") or die ("Could not connect to database\n");

$query = "INSERT INTO trackpet (pid, name, address, city, county, state, email) VALUES(NULL, $name, $address, $city, $county, $state, $email)";
$result = mysql_query($query);

Options: ReplyQuote


Subject
Written By
Posted
Newb help :(
March 27, 2005 08:29PM
March 27, 2005 11:00PM
March 27, 2005 11:35PM
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.