![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| Sorry beginner at this. i've created a php site in dreamweaver and most is all well but for some reason in one of my mysql tables I have some names that have apostrpohes in them but when displayed on a page (or an edit form) they always are displayed as a double apostrophe for example in the table there is a field with data in it which is ireland's but on display it comes out as ireland''s can anyone shed any light on that one for me???? | |||
| | #2 | ||
| Adam Davies <sdfsf@Sdf.com> wrote in news:MPG.19abfc92fba859d8989682 @news.easynews.com: > i've created a php site in dreamweaver and most is all well but for some > reason in one of my mysql tables I have some names that have apostrpohes > in them but when displayed on a page (or an edit form) they always are > displayed as a double apostrophe for example in the table there is a > field with data in it which is ireland's but on display it comes out as > ireland''s Must be the way you're escaping (or not) the string. You probably use the single quote (or apostrophe) to delimit strings in your query (ie, INSERT INTO myTable VALUES ('ireland') ). If you need to use the single quote in your string, you have to escape it: 'ireland\'s'. It should be converted back when you extract the value from the DB. Another thing that might cause problems is if Magic Quotes GPC is enabled in PHP. It'll "magically" escape input strings (GET, POST, COOKIE), and sometimes this will mess things up. KAH | |||
| Featured Websites | ||||
|
![]() |
| Tags: irelands, showing |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Flexible table keeps showing a gap | crispy | HTML | 5 | 07-01-2007 2:07 PM |
| Do you live in the UK or Ireland? | Bill Hancock | Building An Internet Business | 0 | 05-29-2007 3:07 AM |
| UK and Ireland Home-based business opportunity | Bill Hancock | Building An Internet Business | 0 | 05-29-2007 2:28 AM |
| Not showing up in google | terrycr@att.net | Google questions | 1 | 05-28-2007 1:45 AM |
| Hello from Northern Ireland | weirfire | Introduce yourself | 26 | 04-03-2006 9:49 PM |
| Featured Websites | ||||
|