is it possible to add sql string entry with line breaks?
ive tried the expression \n but it didnt work when parsing with php
is it possible to add sql string entry with line breaks?
ive tried the expression \n but it didnt work when parsing with php
Last edited by ggalan; 07-21-2010 at 11:47 PM.
Yes, but it depends on the format.
For example:
$line = "\n";
mysql_query('......'.$line.'.....');
That would work.
Also, you can just add a line break in the query:
mysql_query('one
two');
If you still have trouble, you'll need to post some code so we can help.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
i didnt know you can add an actual line break in the query!
thanks
MySQL is a full programming language, though often it is used through a language like PHP.
If you want to see an example of lots of MySQL code, with comments and many line breaks, just look at the backup from a database (such as generated from phpmyadmin).
Glad to hear it works.
Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
yes you can and the syntax is correct that is given by the earlier post
Bookmarks