• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Result of query in multiple lines

 
hasan wasif2k1
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From textarea in HTML i entered values which is stored in database. Which is like this
Hello,
Hi
When i retreive this from database it shown the whole string in one line (i.e Hello,Hi). How can we display in multiple line like
Hello,
Hi
Database using is MySql and field type is Text
 
namita pa
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
If i understood the problem ...
Create a StringTokenizer on the String you recieved from database and get tokens based on "," as a delimiter.then you'll have hello and Hi in seperate strings which u can display as you want
hope it will work .all the best.
------------------
 
hasan wasif2k1
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if not delimiter is there ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic