| From: | Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> |
|---|---|
| To: | SG Edwards <s0460205(at)sms(dot)ed(dot)ac(dot)uk> |
| Cc: | pgsql-php(at)postgresql(dot)org |
| Subject: | Re: Printing off the page.... |
| Date: | 2005-05-14 09:02:01 |
| Message-ID: | 4285BE89.1080509@familyhealth.com.au |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(at)postgresql(dot)org
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Scott Marlowe | 2005-05-17 17:01:03 | Re: Does Postgresql have a similar pseudo-column "ROWNUM" as |
| Previous Message | Volkan YAZICI | 2005-05-13 12:03:57 | Re: Printing off the page.... |