Re: strange extra quote mark appearing in mysql query
- From: "MS" <MS@xxxxxxxxxx>
- Date: Tue, 24 Oct 2006 11:22:43 +0100
I have a form where registered users on my site can edit their login
details. For some reason, the script is inserting an extraneous quote
mark in the mysql update query that is preventing it from running
successfully, but I am at a complete loss to understand why.
This is the error message:
Error updating details: You have an error in your SQL syntax near
'xxxx@xxxxxxxx' WHERE userid = '15'' at line 4
I dont think that the problem is an extra quote, I think the extra quote you
see is the error message within quotes.
'error message' it just so happens that the part of the error it reports
also contains quotes. eg 'the error is '15'' I have had this myself and the
problem has been a field name that was spelt incorrectly.
Check your field names !!
MS
.
- Prev by Date: Re: how do enable php to run "--with-mysql" ro curl on Windows XP?
- Next by Date: Re: non session/cookie login
- Previous by thread: non session/cookie login
- Next by thread: how to lock a block of php codes
- Index(es):
Relevant Pages
|