You are here: Re: mysql_fetch_array « PHP Programming Language « IT news, forums, messages
Re: mysql_fetch_array

Posted by Geoff Berrow on 07/02/06 10:45

Message-ID: <1151836878.677813.324590@b68g2000cwa.googlegroups.com> from
Maximus contained the following:

>Now after doing the query, i need to echo it's results in 3 different
>tables, 1 big, and 2 small below the big one.
>
>how can i do that?

while($myrow=mysql_query($sql){
$table[]=$myrow;
}

$table is then an array containing your three rows
($table[0],$table[1],$table[2]).

Loop through it using foreach to extract the data any way you choose.

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

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

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