Condition is a reserved word in mysql...you will need to change the field name
bastien Date: Tue, 28 Aug 2007 18:11:20 -0700 From: [EMAIL PROTECTED] To:
php-db@lists.php.net Subject: [PHP-DB] mysql error... this is bugging me to
no end (no pun intended)... I am getting the error: invalid
John Pillion wrote:
this is bugging me to no end (no pun intended)... I am getting the error:
invalid query: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near 'Condition, ConstructType, BldgDimensions,
elk dolk wrote:
Hi All,
I want to load data from dump file to MySQL table using LOAD DATA INFILE
but there is Error 1366 :
mysql LOAD DATA
- INFILE 'D:/SITE/SOMETABLE.SQL'
- INTO TABLE SOMETABLE
- FIELDS TERMINATED BY ','
- OPTIONALLY ENCLOSED BY ''
- LINES TERMINATED BY
Chetanji says,
This may be a typo of yours.
Look at the header...
CREATE TABLE `sometableo`
The 'o' is added by mistake?
Blessings,
Chetanji
elk dolk wrote:
Hi All,
I want to load data from dump file to MySQL table using LOAD DATA INFILE
but there is Error 1366 :
mysql LOAD DATA
-Original Message-
From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]
No... That is just some strange error generated by the cut and
paste. The IS NOT NU LL that is...
The other issue with 'tablename'... I simply typed 'tablename'
in the e-mail because I didn't
-Original Message-
From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]
I have been using a PHP page to update a database table for a
long time now.
Unfortunately, I have noticed that frequently when I perform an update
I get back an error
saying Table 'tablename' doesn't
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] MySQL error...
-Original Message-
From: NIPP, SCOTT V (SBCSI) [mailto:[EMAIL PROTECTED]
I have been using a PHP page to update a database table for a
long time now.
Unfortunately, I have noticed that frequently when I perform
Stuart Felenstein wrote:
First time setting something like this up. So probably
making some major mistakes.
Anyway I get this message : mysql_error(Resource id
#2)
[snip]
echo . mysql_error($link);
Read the above line or use an editor that does syntax highlighting.
Also, you'll want to get the
]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] mysql error and resource ID:
Quote as in string or quote as in 'string' ?
Those two confuse me.
Stuart
--- [EMAIL PROTECTED] wrote:
If any of the variables used to insert data are
strings ($f1a, $f2a,
etc...), you'll need to have quotes
Anyone see something wrong here :
My error message is :
0: 1064: You have an error in your SQL syntax. Check
the manual that corresponds to your MySQL server
version for the right syntax to use near
'd',1,'d',1,1, 31, 33,10/15/2004))' at
line 5
Code:
$query = INSERT INTO MainTable
single
quotes around the whole date, like '10/15/2004'.
dave
Stuart Felenstein [EMAIL PROTECTED]
10/14/2004 10:02 AM
To:
Stuart Felenstein [EMAIL PROTECTED]
cc:
[EMAIL PROTECTED]
Subject:
RE: [PHP-DB] mysql error and resource ID:
Anyone see something
mysql knows. this means your query failed, $command resulted in an invalid
result set. try adding: or die(mysql_error()); to any call to mysql_query
()so in your code use this:
$result = mysql_query($command,$mysqlHandle) or die(mysql_error());
- and -
$resultw =
Hi Jordan
Made any recent changes to your network configuration? Can you access other
IP ports OK e.g. http port 80? Do you have any firewall protection on your
PC? Can you access MySQL from the command line OK?
Rich
-Original Message-
From: JordanW [mailto:[EMAIL PROTECTED]]
Sent: 28
Just a shot in the dark, but be sure the socket and port settings are
correct for your setup (whatever that might be since you did not include
that info in your post) and that mysql is actually running.
Be sure to scour
http://www.mysql.com/documentation/mysql/bychapter/index.html
especially
I CC-ed the mailing list by accident. Below is my original reply to Brian.
-Original Message-
From: Jonathan Hilgeman
Sent: Thursday, June 28, 2001 8:14 AM
To: 'Brian Grayless'
Cc: PHP-DB (E-mail)
Subject: RE: [PHP-DB] MySQL Error???
Hi Brian,
Sounds like you have a tinyint field
Thanks guys. It was all very helpful and worked great!
Brian
-Original Message-
From: Christian Sandfeld [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 3:06 AM
To: 'Brian Grayless'; '[EMAIL PROTECTED]'
Subject: RE: [PHP-DB] MySQL Error???
Brian,
Sounds to me as if the field
sounds like your field definition is something like int(2) or something, it
needs to be bigger so that it can handle higher numbers for the unique
primary key :)
// -Original Message-
// From: Brian Grayless [mailto:[EMAIL PROTECTED]]
// Sent: Thursday, 28 June 2001 12:24 AM
// To: PHP
Hi,
This error occurs when your auto_increment index field is of type TINYINT.
This field type can accept values form -128 to 127 so you cannot add records
with index value greater than 127.
I recommend you change it to INT(11) UNSIGNED which can accept values from 0
to 4294967295.
If you expect
Brian,
Sounds to me as if the field you have as primary key is set to type
'TINYINT'. TINYINT's 'signed' range accepts values from -128 to 127, when
set to 'unsigned' it accepts values from 0 to 255.
In your place I would concider changing that column to a 'SMALLINT' and set
it to 'unsigned'.
At 27.06.2001 17:24, Brian Grayless wrote:
Is anyone familiar with this MySQL error?
1062: Duplicate entry '127' for key 1
I wrote a great bookmark management program that works fine, but everytime I
insert bookmarks, I insert somewhere over 120 and I start getting this
error, and it won't add
Most likely, your id (index, auto-increment field, whatever it is) data type
is tinyint which only goes to 127.
Brian Grayless [EMAIL PROTECTED] said:
Is anyone familiar with this MySQL error?
1062: Duplicate entry '127' for key 1
I wrote a great bookmark management program that works
Hi
You create a unique index (i think primary) an try to enter a key that is
already in the table.
greetings saul
- Original Message -
From: Brian Grayless [EMAIL PROTECTED]
To: PHP DB list (E-mail) [EMAIL PROTECTED]
Sent: Wednesday, June 27, 2001 12:24 PM
Subject: [PHP-DB] MySQL
on 6/27/01 9:24 AM, Brian Grayless at [EMAIL PROTECTED] wrote:
1062: Duplicate entry '127' for key 1
I wrote a great bookmark management program that works fine, but everytime I
insert bookmarks, I insert somewhere over 120 and I start getting this
error, and it won't add them anymore. Any
On Wed, Jun 27, 2001 at 10:24:13AM -0600, Brian Grayless wrote:
Is anyone familiar with this MySQL error?
1062: Duplicate entry '127' for key 1
The error means you are attempting to put a second record in with the
value of 127.
I wrote a great bookmark management program that works fine, but
-Original Message-
From: Brian Grayless [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 11:24 AM
To: PHP DB list (E-mail)
Subject: [PHP-DB] MySQL Error???
Is anyone familiar with this MySQL error?
1062: Duplicate entry '127' for key 1
I wrote a great bookmark
25 matches
Mail list logo