| От | Alexander Borkowski |
|---|---|
| Тема | Re: Output HTML, or just a handle? |
| Дата | |
| Msg-id | 41F5B0BF.1050102@abri.une.edu.au обсуждение |
| Ответ на | Output HTML, or just a handle? ("Rodolfo J. Paiz" <rpaiz@simpaticus.com>) |
| Список | pgsql-novice |
Rodolfo, > Looking for "best practices" here. I've just seen that psql can output a > query to an HTML file. [...] Or is it recommended to just run the bare query, then use PHP on my > webpage to loop through the resulting output table handle and create the > table there? [...] Depends on your application really and without more information there is nothing else I can say. For the vast majority of scenarios you probably are better off using PHP (or some other language like Python, Perl, Java, C, ...) and just loop through the result set. For PHP have a look at http://www.php.net/manual/en/ref.pgsql.php Cheers, Alex
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера