Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Problem in search when value contents single quote (') in ..

 
   Database Help (Home) -> General Discussion RSS
Next:  Template - event journal  
Author Message
babal

External


Since: Aug 26, 2008
Posts: 1



(Msg. 1) Posted: Tue Aug 26, 2008 10:58 pm
Post subject: Problem in search when value contents single quote (') in where
Archived from groups: comp>databases (more info?)

Hello Everyone,

I m facing a issue, in search condition in where clause to be very
specific.

I have a table events which has title column with varchar(255) data
type.
When user enters single quote (') in it there is no issue with insert
or update but when i search for that specific record, i m getting no
resulted row.

version Details:
PHP 4.4.0
MySQL 4.3
Apache 1.3

I have tried mysql_escape_string also but no luck.

Sample Entry of the record is: babal's First event (same value i have
in the database).

thanks & Regards
Babal

 >> Stay informed about: Problem in search when value contents single quote (') in .. 
Back to top
Login to vote
Lennart

External


Since: Jan 11, 2008
Posts: 130



(Msg. 2) Posted: Wed Aug 27, 2008 8:55 am
Post subject: Re: Problem in search when value contents single quote (') in where [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 27, 7:58 am, babal wrote:
> Hello Everyone,
>
> I m facing a issue, in search condition in where clause to be very
> specific.
>
> I have a table events which has title column with varchar(255) data
> type.
> When user enters single quote (') in it there is no issue with insert
> or update but when i search for that specific record, i m getting no
> resulted row.
>
> version Details:
> PHP 4.4.0
> MySQL 4.3
> Apache 1.3
>
> I have tried mysql_escape_string also but no luck.
>
> Sample Entry of the record is: babal's First event (same value i have
> in the database).
>

Try:

babal''s First event

/Lennart

 >> Stay informed about: Problem in search when value contents single quote (') in .. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Single or Multiple Tables? - Hi I was wondering which of the design approaches below would be better: Within the admin section of a website administrators can upload Resources for inclusion throughout the site. Now, these Resources can be either images, videos or documents e.g...

Single query to find multi-level relationships? - I'm writing some code to suport a contact database, where a contact can be either a person or a group. Groups can contain people directly and can also contain other groups. The (simplified) table structure looks like this: PERSON ------ person_id ..

MySQL Multiple Joins? Having Problem w/ syntax. - Reletive newbie on multiple JOINS... I need to list all rows in KEYWORDS that have a PATH.path containing the string "test". I am at the mercy of MySQL 3.x so nested queries are not allowed. I got to a point where I was getting some erratic ...

Strange problem with MySQL string comparison - I have been using MySQL on and off for a number of years but I am stumped by this problem. I am doing a select which requires a join to a second table using an account key, I have a WHERE clause which ensures that I only get the correct type of account....

Erwin modeling basic question - Hi, Can anyone tell me when doing db design in ERWin, how do you make the table column area longer so more attributes can be shown in the diagram? I thought it'd be as simple as dragging the lower corner of the table, but it didn't work. And I didn't....
   Database Help (Home) -> General Discussion All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]