pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
To: SG Edwards <s0460205@sms.ed.ac.uk>
Cc: pgsql-php@postgresql.org
Subject: Re: Printing off the page....
Date: Sat, 14 May 2005 17:02:01 +0800
Message-ID: <4285BE89.1080509@familyhealth.com.au> (raw)
In-Reply-To: <1115978112.428479801cb7b@sms.ed.ac.uk>
References: <1115978112.428479801cb7b@sms.ed.ac.uk>

Use the PHP wordwrap() function.

SG Edwards wrote:
> Hi guys,
> 
> I have a postgres database connected to a website using PHP.
> I have a table that stores gene sequences which are very long (approx. 800
> characters).
> 
> If I try and print this, it prints as a single line which runs off the page. Is
> there a way to print the sequence with a line break every 50 characters?
> 
> for example,
> 
> AAAAAAAAAAAACCCCCCCCCCC
> TTTTTTTTTTTTTTTTGGGGGGG
> AAAAAAAAATTT
> 
> 
> Rather than:
> 
> AAAAAAAAAAACCCCCCCCCCCCTTTTTTTTTTTTTGGGGGGGGGGGAAAAAAAAAATTT
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



view thread (5+ messages)

Message-ID: <4285BE89.1080509@familyhealth.com.au>
Permalink:  ../4285BE89.1080509@familyhealth.com.au/
Also on:    postgresql.org/message-id/4285BE89.1080509@familyhealth.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: chriskl@familyhealth.com.au, s0460205@sms.ed.ac.uk
  Subject: Re: Printing off the page....
  In-Reply-To: <4285BE89.1080509@familyhealth.com.au>
  References: <1115978112.428479801cb7b@sms.ed.ac.uk> <4285BE89.1080509@familyhealth.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox