form help

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
webwired
New php-forum User
New php-forum User
Posts: 26
Joined: Sat Nov 23, 2002 5:20 pm
Location: St. Louis, Missouri
Contact:

Post by webwired » Sat Dec 07, 2002 9:57 am

Try this out...

Code: Select all

<?php 

$db = mysql_connect("localhost", "root", "mypw");

mysql_select_db("randyrsvp",$db);

$sqlquery = "INSERT INTO rsvp VALUES ('$First_Name','$Last_Name','$How_Many','$Children','$Y_N','$Area_Code','$Prefix','$Number')";
$results = mysql_query($sqlquery);
mysql_close();

$done = mysql_db_query("randyrsvp",$sql);

if ($done != '0')
{
echo "you have inserted a record";
}
else
{
echo"insert failed";
}

?>

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests