pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: SG Edwards <s0460205@sms.ed.ac.uk>
To: pgsql-php@postgresql.org
Subject: Printing off the page....
Date: Fri, 13 May 2005 10:55:12 +0100
Message-ID: <1115978112.428479801cb7b@sms.ed.ac.uk> (raw)


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



view thread (5+ messages)  latest in thread

Message-ID: <1115978112.428479801cb7b@sms.ed.ac.uk>
Permalink:  ../1115978112.428479801cb7b@sms.ed.ac.uk/
Also on:    postgresql.org/message-id/1115978112.428479801cb7b@sms.ed.ac.uk

 · 

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: s0460205@sms.ed.ac.uk
  Subject: Re: Printing off the page....
  In-Reply-To: <1115978112.428479801cb7b@sms.ed.ac.uk>
  References: <1115978112.428479801cb7b@sms.ed.ac.uk>

* 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