okay.. i'm going to list my query, my results, and the var types in the dbase so u have all the info, but, i'm stuck. i get no errors back from my query i printed mysql_error() and got nothing back. the query seems fine, but, it doesn't show up in the dbase. i'm wondering if it's too big? well, here's the code etc. thanks for any input. - Froz
the code
include('inc/inc_DB.php');
$qry = new DBQuery();
$sql = "INSERT INTO info_please (associate_id, HeardAbout, AccessSite, Gender, ";
$sql .= "Education, Occupation, Income, MaritalStatus, HouseholdSized, ChildrenInHouse, Vehicles, RecVehicle, ";
$sql .= "hhOwnHome, hhSecondHome, hhHomeOffice, hhPets, All, Auto, Babies, Clearance, Clothing, Computer, ";
$sql .= "Dining, Entertainment, Freestuff, Games, Grocery, Health, Home, Money, Moving, Pets, Recipes, ";
$sql .= "Seasonal, Sports, Toys, Travel, Wedding, ConsumerFirst, PhoneCards, InternetAccess, BusinessOp, ";
$sql .= "FreeEmail, UseFreeEmail, AddBusiness ";
$sql .= "VALUES (" . $_REQUEST['associate_id'] . ",'" . $_REQUEST['Heard_About'] . "','" . $_REQUEST['Access_Site'] . "','" . $_REQUEST['Gender'] . "','";
$sql .= $_REQUEST['Education'] . "','" . $_REQUEST['occupation'] . "','" . $_REQUEST['Income'] . "','" . $_REQUEST['Marital_Status'] . "','";
$sql .= $_REQUEST['Household_Size'] . "','" . $_REQUEST['Children_Inhouse'] . "','" . $_REQUEST['Vehicles'] . "','" . $_REQUEST['RecVehicle'] . "','" . $_REQUEST['hhOwnHome'] . "','";
$sql .= $_REQUEST['hhSecondHome'] . "','" . $_REQUEST['hhHomeOffice'] . "','" . $_REQUEST['hhPets'] . "','" . $_REQUEST['All'] . "','";
$sql .= $_REQUEST['Auto'] . "','" . $_REQUEST['Babies'] . "','" . $_REQUEST['Clearance'] . "','";
$sql .= $_REQUEST['Clothing'] . "','" . $_REQUEST['Electronics'] . "','" . $_REQUEST['Dining'] . "','" . $_REQUEST['Entertainment'] . "," . $_REQUEST['FreeStuff'] . "','" . $_REQUEST['Games'] . "','";
$sql .= $_REQUEST['Grocery'] . "," . $_REQUEST['Health'] . "','";
$sql .= $_REQUEST['HomeAndGarden'] . "','" . $_REQUEST['MoneyAndInvesting'] . "','" . $_REQUEST['Moving'] . "','";
$sql .= $_REQUEST['Pets'] . "','" . $_REQUEST['Recipes'] . "','" . $_REQUEST['Seasonal'] . "','";
$sql .= $_REQUEST['Fitness'] . "','" . $_REQUEST['Education'] . "','" . $_REQUEST['Travel'] . "','";
$sql .= $_REQUEST['Wedding'] . "','" . $_REQUEST['Consumer'] . "','" . $_REQUEST['PhoneCards'] . "','";
$sql .= $_REQUEST['InternetAccess'] . "','" . $_REQUEST['BusinessOp'] . "','" . $_REQUEST['yesemail'] . "','";
$sql .= $_REQUEST['yesemailprimary'] . "','" . $_REQUEST['addbusiness'] . "')";
print $sql . mysql_error();
$qry->Run_SQL($sql);
the $sql var printed
INSERT INTO info_please (associate_id, HeardAbout, AccessSite, Gender, Education, Occupation, Income, MaritalStatus, HouseholdSized, ChildrenInHouse, Vehicles, RecVehicle, hhOwnHome, hhSecondHome, hhHomeOffice, hhPets, All, Auto, Babies, Clearance, Clothing, Computer, Dining, Entertainment, Freestuff, Games, Grocery, Health, Home, Money, Moving, Pets, Recipes, Seasonal, Sports, Toys, Travel, Wedding, ConsumerFirst, PhoneCards, InternetAccess, BusinessOp, FreeEmail, UseFreeEmail, AddBusiness VALUES (97,'Radio Ad','Home','Male','Y','Professional','$40,000 - $60,000','Widowed','1','Yes','2','2','yes','yes','yes','yes','Y','Y','Y','Y','Y','Y','Y','Y,Y','Y','Y,Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y','Y')
and all the var types are either varchar or char except for the very first one which is int(10) which there should be no probs with that one. thanks for anything.. - Mike