Jump to content

Insert


pranshu82202

Recommended Posts

I am working with a insert query...

 

$query="INSERT INTO user_info_more (website) VALUES ('".$website."') WHERE id='$_SESSION[id]'";
mysql_query($query) or die ('Unable to register an account with following details 1');

 

but the output is " Unable to register an account with following details 1"

 

Basically i have a row with 6 cloumns in mysql database in which only the id column and name column is filled...

Now i want to insert $website in the "website" column of the database...

 

Neither i can update as the website column initially is null...

 

I do not know what to do....

A lot of cnfusion

Link to comment
https://forums.phpfreaks.com/topic/246070-insert/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.