Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 25th, 2005, 03:39 AM
Authorized User
Join Date: Sep 2004
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.


Old May 30th, 2005, 01:10 AM
Friend of Wrox
Join Date: May 2004
Posts: 642
Thanks: 0
Thanked 43 Times in 42 Posts


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
Old May 31st, 2005, 07:59 AM
Authorized User
Join Date: Jul 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to raj_makro

  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>")


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

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