Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 25th, 2005, 03:39 AM
Authorized User
 
Join Date: Sep 2004
Location: Delhi, Delhi, India.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default get paragraph from database

I'm using memo fields to store some contents.
when i want to retrive contents from data then there is
no problem in displaying the contents.
But i want to print only first pragraph in one <td></td> ,second paragraph from another 'td' and so on.

so pls tell me the logic or code for this.

Thanks

vicky
__________________
vicky
Reply With Quote
  #2 (permalink)  
Old May 30th, 2005, 01:10 AM
Friend of Wrox
Points: 2,473, Level: 20
Points: 2,473, Level: 20 Points: 2,473, Level: 20 Points: 2,473, Level: 20
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: India
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts
Default

Hi,

what delimiter u r using while storing data in the database?

If you are using new Line Char, then this can be replaced with "<TD></TD>"


Om Prakash
Reply With Quote
  #3 (permalink)  
Old May 31st, 2005, 07:59 AM
Authorized User
 
Join Date: Jul 2004
Location: Hyderabad, Andhra Pradesh, India.
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to raj_makro
Default

Hi
  Let me code what Prakash is saying. Say you are storing the data from memo field into variable mymemo and displaying it using
<%
  Response.write mymemo
%>
  To achieve required output, the same has to be modified as

<%
   Response.wrie replace(mymemo,vbcrlf,"</td><td>")
%>


Regards
Raj
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
paragraph problem dzisaacs XSLT 2 December 31st, 2005 02:49 AM
Table inside paragraph dzisaacs XSLT 3 December 5th, 2005 05:36 AM
Paragraph marks SameerParker Beginning PHP 5 December 14th, 2004 05:25 AM
Help! Empty paragraph tags! abq23 PHP How-To 1 June 15th, 2004 08:57 PM
Indented paragraph ric Beginning VB 6 1 February 26th, 2004 06:08 AM



All times are GMT -4. The time now is 10:15 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.