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 C9E255322D for ; Fri, 13 May 2005 06:55:26 -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 00806-06 for ; Fri, 13 May 2005 09:55:18 +0000 (GMT) Received: from grassmarket.ucs.ed.ac.uk (grassmarket.ucs.ed.ac.uk [129.215.166.64]) by svr1.postgresql.org (Postfix) with ESMTP id DF02C536B1 for ; Fri, 13 May 2005 06:55:14 -0300 (ADT) Received: from grassmarket.ucs.ed.ac.uk (localhost [127.0.0.1]) by grassmarket.ucs.ed.ac.uk (8.12.10/8.12.10) with ESMTP id j4D9tCo5016837 for ; Fri, 13 May 2005 10:55:12 +0100 (BST) Received: (from nobody@localhost) by grassmarket.ucs.ed.ac.uk (8.12.10/8.12.9/Submit) id j4D9tC5w016836 for pgsql-php@postgresql.org; Fri, 13 May 2005 10:55:12 +0100 (BST) From: SG Edwards X-Authentication-Warning: grassmarket.ucs.ed.ac.uk: nobody set sender to s0460205@sms.ed.ac.uk using -f Received: from sem30.icmb.ed.ac.uk (sem30.icmb.ed.ac.uk [129.215.237.51]) by sms.ed.ac.uk (IMP) with HTTP for ; Fri, 13 May 2005 10:55:12 +0100 Message-ID: <1115978112.428479801cb7b@sms.ed.ac.uk> Date: Fri, 13 May 2005 10:55:12 +0100 To: pgsql-php@postgresql.org Subject: Printing off the page.... MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.3 X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.143 tagged_above=0 required=5 tests=AWL, FROM_ENDS_IN_NUMS, TRACKER_ID X-Spam-Level: * X-Archive-Number: 200505/24 X-Sequence-Number: 3138 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