Re: Inserting data at runtime (php,mysql)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




----- Original Message ----- From: "Thorsten Suckow-Homberg" <ts@xxxxxxxxxxxxxx>
To: "sathyashrayan" <foraci@xxxxxxxxx>
Cc: <php-general@xxxxxxxxxxxxx>
Sent: Tuesday, March 21, 2006 6:00 PM
Subject: Re:  Inserting data at runtime (php,mysql)



The connection is successful but the data are not getting inserted into the table. I need to insert all the words into the table. When I change the insert statement with one insert at a time, I can insert values to the database. For exampel:

$qure = "INSERT INTO dict VALUES (1,'apple')";

Do I need to check the formatted data in the file?

Can any one help me in this regard?

I have been working in VC++ for some time.



Replace

$str =  mysql_query($qure);

with

$str =  mysql_query($qure) or die(mysql_error());

I bet there is an enquoting problem with the data you want to insert...


That does not show me any error. I think I need to check for the enter character for each data in the file.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux