Hi,
I have a Select statement that is returning multiple rows. THe information that is returned is getting inserted into a new table for an external applcation to access.
When values in the select statment contain apostrophe e.g. Chris O'Leary the created insert contain the followingSee the issue - It inserts the data but the apostrophe is appearing as ' so the database field appears as Chris O'Leary - In sugar I see that it uses the following for apostrophePHP Code:INSERT INTO table (name) VALUES ('Chris O'Leary )
For some reason the PHP code is not including the third apostrophe they should have ('Chris O'Leary') and ('Chris O\ 'Leary')PHP Code:INSERT INTO table (name) VALUE ('Chris O\ 'Leary)
How do I acheive something like that is a logic hook? where my statment has something like teh following
Where $name is returned in the select statment along with many other fields.PHP Code:INSERT INTO table (name) VALUES ('$name')
Rgds
Chris


LinkBack URL
About LinkBacks




Reply With Quote

Bookmarks