You are here: Re: SQL table data appears after html but called earlier. « PHP Programming Language « IT news, forums, messages
Re: SQL table data appears after html but called earlier.

Posted by The Natural Philosopher on 11/14/07 16:00

Matthew wrote:
> Sorry if this is a newbie question I can't seem to find the answer with
> web searches, prob. wrong search query but can't get it right.
>
> My PHP file does some database processing, of various kinds, and
> displays some of the returned data in html. When the PHP file is at the
> end of its processing two final functions are called, the FIRST function
> called makes a SQL query and calls another function to display the
> returned rows in an html table. The SECOND function called just displays
> the copyright info. line and html menu that is always at the bottom of
> the site's webpages. However when testing the file, I've noticed that
> the html table created by the FIRST function call is displayed below the
> info. line and html menu which are the result of the SECOND function
> call. This is the wrong way around and, from the site's aesthetic point
> of view, unacceptable.
>
> I'm not really sure why this is happening, or how I stop it and get the
> PHP to display the html in the order which I want. Any help would be
> most welcome. Thanks to all you PHPers. Matthew.

Chances are this is not a PHP problem at all. Is an HTML bug in your
display.

I've done this so many times..incomplete table rows, odd format commands
that confuse the browser.

If you have firefox, set the error console on and load the page. Grosser
errors will show up in that, also 'view page source' will confirm if the
PHP is spitting them out in the correct order.

No magic fixes. Just tedious poring over output and tag matching..

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация