| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Date: | January 1 1970 12:00am | |
| Subject: | Re: HTML in MySQL? Date: Sun, 11 Sep 2005 23:15:39 +0400 | ||
| View as plain text | |||
Hello! > But once you have done that, you can never recover the origional text. > Try it on this email if you doubt it. Why? Why not to use regular expressions? > Use addslashes($htmlCode) and execute query normally. > $slashedHtmlCode = addslashes($htmlCode); The problem is not in the executing of a query. After the execution of the script: <?php $string = "\n\n\n\n 1"; echo addslashes($string); ?> we will get: 1 and no empty lines. If you want to output the same data, that was written using a textarea field of a form, you should use the "<br>" tag. -- Good Luck! Vladimir Please, avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
| Thread | ||
|---|---|---|
| • HTML in MySQL? | clint lenard | 9 Sep |
| • Re: HTML in MySQL? | Jasper Bryant-Greene | 9 Sep |
| • Re: HTML in MySQL? | clint lenard | 9 Sep |
| • Re: HTML in MySQL? | Jasper Bryant-Greene | 9 Sep |
| • Re: HTML in MySQL? | clint lenard | 9 Sep |
| • Re: HTML in MySQL? | douglass_davis | 12 Sep |
| • Re: HTML in MySQL? | clint lenard | 12 Sep |
| • Re: HTML in MySQL? | clint lenard | 12 Sep |
| • Re: HTML in MySQL? | clint lenard | 12 Sep |
| • Re: HTML in MySQL? | Hassan Schroeder | 12 Sep |
| • RE: HTML in MySQL? | SST - Adelaide) | 9 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 9 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 9 Sep |
| • RE: HTML in MySQL? | Alan Williamson | 9 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 9 Sep |
| • Re: HTML in MySQL? | gerald_clark | 9 Sep |
| • Re: HTML in MySQL? | Filipe Tomita | 9 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 9 Sep |
| • RE: HTML in MySQL? | John Trammell | 9 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 11 Sep |
| • Re: HTML in MySQL? | Roger Baklund | 11 Sep |
| • Re: HTML in MySQL? | Unknown Sender | 11 Sep |
| • RE: HTML in MySQL? | John Trammell | 11 Sep |
| • Re: HTML in MySQL? | Jasper Bryant-Greene | 12 Sep |
| • Re: HTML in MySQL? | Jasper Bryant-Greene | 12 Sep |
| • Re: HTML in MySQL? | clint lenard | 12 Sep |
