X-Original-To: pgsql-php-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 99024563B5 for ; Sat, 14 May 2005 06:02:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 24654-09 for ; Sat, 14 May 2005 09:02:01 +0000 (GMT) Received: from vscan01.westnet.com.au (vscan01.westnet.com.au [203.10.1.131]) by svr1.postgresql.org (Postfix) with ESMTP id 151BA5446F for ; Sat, 14 May 2005 06:01:57 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with ESMTP id DAFBA24BF14; Sat, 14 May 2005 17:01:57 +0800 (WST) Received: from vscan01.westnet.com.au ([127.0.0.1]) by localhost (vscan01.westnet.com.au [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21311-06; Sat, 14 May 2005 17:01:57 +0800 (WST) Received: from [202.72.133.22] (dsl-202-72-133-22.wa.westnet.com.au [202.72.133.22]) by vscan01.westnet.com.au (Postfix) with ESMTP id 7B4F9CEF36; Sat, 14 May 2005 17:01:57 +0800 (WST) Message-ID: <4285BE89.1080509@familyhealth.com.au> Date: Sat, 14 May 2005 17:02:01 +0800 From: Christopher Kings-Lynne User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: SG Edwards Cc: pgsql-php@postgresql.org Subject: Re: Printing off the page.... References: <1115978112.428479801cb7b@sms.ed.ac.uk> In-Reply-To: <1115978112.428479801cb7b@sms.ed.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.113 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200505/28 X-Sequence-Number: 3142 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