Data is splitting when calling from database

when calling data from myysql database data is splitting where next line(\n) is present and data is showing in two different items in listview

And your question is? :sunglasses:

so how to solve this issue :zipper_mouth_face:

Don’t use the \n characters in your database. That is the same as a new line.

yeah but if new line is also present in a particular database cell data is getting splitted in list view in two different items

Why not show your blocks?

using deep host mysql extension…
Screenshot (170)

I think you should not put the \n in your database. Why do you use it anyway? If you want to simulate a new line the you could for instance put <br> in the database and when reading replace it with \n while placing it in the listview.

1 Like

but problem is that what to do when the data is being uploaded by users

Automatically remove the \n before putting it in the database.

okeee…got it now…btw…thaaaankkkuuuuu

1 Like

btw what is the defination of <br> :sweat_smile: :sweat_smile:

The HTML <br> element produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.

okee…got it

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.