Re: Printing off the page.... - Mailing list pgsql-php

From Christopher Kings-Lynne
Subject Re: Printing off the page....
Date
Msg-id 4285BE89.1080509@familyhealth.com.au
Whole thread Raw
In response to Printing off the page....  (SG Edwards <s0460205@sms.ed.ac.uk>)
List pgsql-php
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

pgsql-php by date:

Previous
From: Volkan YAZICI
Date:
Subject: Re: Printing off the page....
Next
From: Postgres Admin
Date:
Subject: ERROR: unterminated quoted string... help