| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера