Jump to content

[SOLVED] INSERT INTO = pulling my hair out!


Recommended Posts

Hello Everyone,

 

I've got several db's on my server so this isn't entirely new but I'm choking here!!!  Can anyone else see something I"m missing???  I've checked the data types and gone so far as to trying to only insert one 'field' at a time but it's not working at all!!!  The user data table is inserting fine, nothing happening in subscribers.

 

Thanks people

Barrie

 

$sql = "INSERT INTO subscribers (Key, Fname, Lname, Addr1, Addr2, City, State, Zip, Phone, Fax, Email, Location, Startdate, Bnames, Billing, Active, Tickettotal, Rate, Amountdue) VALUES ('$key', '$fname', '$lname', '$addr1', $addr2', '$city', '$state', '$zip', '$phone', '$fax', '$email', '$location', '$startdate', '$bnames', '$billing', '$active', '$tickettotal', '$rate', '$amountdue')";

$result = mysql_query($sql);

 

$sql = "INSERT INTO users VALUES ('$key', '$bnames', '$pworduser', '$fnameuser', '$locationuser', '$accessleveluser')";

$result = mysql_query($sql);

 

 

Link to comment
https://forums.phpfreaks.com/topic/40065-solved-insert-into-pulling-my-hair-out/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.