Re: Printing off the page....

Поиск
Список
Период
Сортировка
От David Blanco
Тема Re: Printing off the page....
Дата
Msg-id ef2a8951050513044942a5251a@mail.gmail.com
обсуждение исходный текст
Ответ на Printing off the page....  (SG Edwards <s0460205@sms.ed.ac.uk>)
Список pgsql-php
Hi!

2005/5/13, SG Edwards <s0460205@sms.ed.ac.uk>:
>
> 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?

This seems to be a PHP question, not about PHP-Posgresql :-)

If I understood you right, you can do it with the PHP function "substr"

http://php.net/substr

It's easy to iterate throug the string and to intercalate the line
breaks wherever you want

Bye

В списке pgsql-php по дате отправления:

Предыдущее
От: SG Edwards
Дата:
Сообщение: Printing off the page....
Следующее
От: Volkan YAZICI
Дата:
Сообщение: Re: Printing off the page....