hey guys, I have been out of the loop awhile working as a magazine editor and am now back in the programming world. I am trying to do a simple insert into database and it is throwing me an error. I am just no sure where my code is wrong, any help would be appreciated. Thanks....
Here is my insert code, it gathers info from the POST method on the previous page.......
INSERT CODE
<?php
session_start();
$connect = mysql_connect("mysql3.host, "login", "password")
or die ("Couldn't Connect to server.");
$db = mysql_select_db("databasename", $connect)
or die ("Couldn't Connect To Database.");
$subscribe = "INSERT INTO subs (UserID, BName, BAddress1, BAddess2, BCity, BState, BZip, BCountry, SName, SAddress1, SAddress2, SCity, SState, SZip, SCountry, CCType, CCNumber, CCExpMon, CCExpYear, CCVer, Email) VALUES('$UserID', '$BName', '$BAddress1', '$BAddress2', '$BCity', '$BState', '$BZip', '$BCountry', '$SName', '$SAddress1', '$SAddress2', '$SCity', '$SState', '$SCountry', '$CCType', '$CCNumber', '$CCExpMon', '$CCExpYear', '$CCVer', '$Email')";
$subscribe_result = mysql_query($subscribe,$connect)
or die ("Couldn't insert record!");
header("Location: thanksyou8.php");
exit;
?>