inserting ´ in a db
- From: jiuman@xxxxxxxxx ("Yamil Ortega")
- Date: Thu, 4 Oct 2007 11:44:34 +0900
Hi list, good day.
I have a simple script that inserts text on a mysql table, that has a field
named description and the type is text.
Everting works fine, except when I try to insert a text that includes a
simple quote.
For example
Yamil´s car
I send the character string to a variable and then insert into a query. But
the mysql says that something is wrong with the query because the quote
after the l looks like the end of the string, and ?s car? doesn`t look like
a valid part of the query.
Can anyone help me out, how to handle this error?
Thanks
Yamil
- Follow-Ups:
- RE: [PHP] inserting ´ in a db
- From: "Warren Vail"
- Re: [PHP] inserting ´ in a db
- From: Aleksandar Vojnovic
- Re: [PHP] inserting ´ in a db
- From: Chris
- RE: [PHP] inserting ´ in a db
- From: Bastien Koert
- RE: [PHP] inserting ´ in a db
- Prev by Date: Re: How can i only fetch a (rss/atom) feed when it's changed?
- Next by Date: Mime Magic functions - how standard are they?
- Previous by thread: OT IDEs
- Next by thread: RE: [PHP] inserting ´ in a db
- Index(es):
Relevant Pages
|