I want to insert values in the database.If i insert values one by one
then it works till 4 or 5 fields then after it gives error.In my
database there are more than 20 field.Pls help me. 6 1886
>I want to insert values in the database.If i insert values one by one
>then it works till 4 or 5 fields then after it gives error.In my database there are more than 20 field.Pls help me.
mysql_query() only takes 2 arguments, not 3.141592 arguments, in
line 42.
If you think this answer does not address the problem, how about
including some code, the query, or the error message you got (or
preferably all three)? And what database are you using?
On Aug 23, 6:34*am, Bunty <bunty.virad... @gmail.comwrote :
I *want to insert values in the database.If i insert values one by one
then it works till 4 or 5 fields then after it gives error.In my
database there are more than 20 field.Pls help me.
You obvious have some type of insert error. It would help if you gave
us the error message.
Check the database field type you are inserting into and the data you
are inserting.
Check you have properly encoded the data you are inserting.
Check the databases error message using the appropriate error info
function (e.g. mysql_error() or PDOStatement::e rrorInfo() for MySQL)
On Aug 23, 9:13*pm, macca <ptmcna...@goog lemail.comwrote :
On Aug 23, 6:34*am, Bunty <bunty.virad... @gmail.comwrote :
I *want to insert values in the database.If i insert values one by one
then it works till 4 or 5 fields then after it gives error.In my
database there are more than 20 field.Pls help me.
You obvious have some type of insert error. It would help if you gave
us the error message.
Check the database field type you are inserting into and the data you
are inserting.
Check you have properly encoded the data you are inserting.
Check the databases error message using the appropriate error info
function (e.g. mysql_error() or PDOStatement::e rrorInfo() for MySQL)
I am using MYSQL database and it's give error that NO database selected
On Aug 23, 11:13*am, gordonb.ss...@b urditt.org (Gordon Burditt) wrote:
I *want to insert values in the database.If i insert values one by one
then it works till 4 or 5 fields then after it gives error.In my
database there are more than 20 field.Pls help me.
mysql_query() only takes 2 arguments, not 3.141592 arguments, in
line 42.
If you think this answer does not address the problem, how about
including some code, the query, or the error message you got (or
preferably all three)? *And what database are you using?
I am using mysql
On Aug 23, 11:43*am, Bunty <bunty.virad... @gmail.comwrote :
On Aug 23, 9:13*pm, macca <ptmcna...@goog lemail.comwrote :
On Aug 23, 6:34*am, Bunty <bunty.virad... @gmail.comwrote :
I *want to insert values in the database.If i insert values one by one
then it works till 4 or 5 fields then after it gives error.In my
database there are more than 20 field.Pls help me.
You obvious have some type of insert error. It would help if you gave
us the error message.
Check the database field type you are inserting into and the data you
are inserting.
Check you have properly encoded the data you are inserting.
Check the databases error message using the appropriate error info
function (e.g. mysql_error() or PDOStatement::e rrorInfo() for MySQL)
I am using MYSQL database and it's give error that NO database selected
That error should be your first clue.
It takes two functions to connection to MySQL mysql_connect()
mysql_select_db ().
So far, this error doesn't have anything to do with your SQL. http://www.php.net/manual/en/book.mysql.php
king(dot)isaac( at)gmail(dot)co m wrote:
On Aug 23, 11:43 am, Bunty <bunty.virad... @gmail.comwrote :
>On Aug 23, 9:13 pm, macca <ptmcna...@goog lemail.comwrote :
>>On Aug 23, 6:34 am, Bunty <bunty.virad... @gmail.comwrote : I want to insert values in the database.If i insert values one by one then it works till 4 or 5 fields then after it gives error.In my database there are more than 20 field.Pls help me. You obvious have some type of insert error. It would help if you gave us the error message. Check the database field type you are inserting into and the data you are inserting. Check you have properly encoded the data you are inserting. Check the databases error message using the appropriate error info function (e.g. mysql_error() or PDOStatement::e rrorInfo() for MySQL)
I am using MYSQL database and it's give error that NO database selected
That error should be your first clue.
It takes two functions to connection to MySQL mysql_connect()
mysql_select_db ().
So far, this error doesn't have anything to do with your SQL.
http://www.php.net/manual/en/book.mysql.php
Also maybe if you posted your actual code may help. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bill |
last post by:
I'm trying to create a form that allows me to modify the contents of
list. When the user clicks on the modify button, it takes them to a
page which displays the quantity of items they purchase, and allows
them to update that quantity. So the quantity is shown in a textbox,
and the content of the text box is drawn from a rs("content").
But...
|
by: pmud |
last post by:
I have an ASP.NET web application using C# code. I am trying to insert values
from a web form into an SQL database. I am using SQL COMMAND object for this.
I need to know HOW TO INSERT THE RADIO BUTTON LIST SELECTION entered by the
user in the web form into tha database. for eg. for inserting values from a
text box into the database we write...
|
by: shahla.saeed |
last post by:
wat i want is to insert the calculated values(simple addition or
subtraction) in fields of my table by using expression builders in my
forms..i have made that feild in the table but still it doesnot store
the paticular value in that field..plz help me out..looking forward for
ur replys..thanx
|
by: Shannan Casteel via AccessMonster.com |
last post by:
I set up two tables (one with the regular claim
info and another with ClaimNumber, PartNumber, and QuantityReplaced). The
ClaimNumber is an autonumber and the primary key in both tables. I made a
one to one relationship between the two tables. I have a form for the parts.
It includes 25 text boxes for both the part numbers and the...
|
by: altergothen |
last post by:
Hi there
I am a newbie to ASP.Net - Please Help!
I am trying to insert the values of my variables into a database.
If I try the following it works perfectly:
string insertQuery = "INSERT into test(name,surname,email) VALUES('Bob',
'Sly', 'bobsly@yahoo.com')";
but instead of inputing the values directly, I want to insert them as...
| |
by: tg.foobar |
last post by:
my setup:
visual studio 2005
sql server 2000
i'm using a dataset (used to be called typed dataset in 2003), where i
use the MSDataSetGenerator to create a class for me based on the scheme
of my SQL server. This schema doesn't include the default values that
are defined in the SQL server. It's setting all the default values to
NULL. is...
|
by: clinttoris |
last post by:
Hello,
If someone could help me it would be appreciated as I am not having
much luck.
I'm struggling with my asp code and have some questions relating to asp
and oracle database.
First question. I have a web survey that I am working on and have
successfully dynamically taken the info from a database, displayed it
on the screen and then...
|
by: AlexanderDeLarge |
last post by:
Hi!
I got a problem that's driving me crazy and I'm desperately in need of help.
I'll explain my scenario:
I'm doing a database driven site for a band, I got these tables for their discography section:
Discography
---------------------
DiscID
|
by: monion |
last post by:
One more question.
How can I get query values assign them to a variable, but not show them?
for example size, $f4 in the following: How can I pass that value $f4 to the form handle page to submit to the database. I can clearly see how to pass $f2 with quantity stuck on the end.
Basically, I need to pass 3 things: 1) item#, 2)...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |