Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Robert Cummings
On Wed, 2006-08-09 at 16:39 +0200, Jochem Maas wrote: > PROMISETOSTOP ?>BREAKINGIN ?>ANDOUTOFPHP ?>TOOUTPUT ?>STRINGSTOTHEBROWSER phpinfo(); > > easy to read don't you think? > > Ross wrote: > > At the mometn I have this > > > > > > function display_result($module_no) { > > > > if ($module_no

Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Jochem Maas
PROMISETOSTOPBREAKINGINANDOUTOFPHPTOOUTPUTSTRINGSTOTHEBROWSEReasy to read don't you think? Ross wrote: > At the mometn I have this > > > function display_result($module_no) { > > if ($module_no != "") { > $module_no =unserialize ($module_no); > foreach ($module_no as $number => $data) { > > $c

Re: [PHP] I only want x number of lines of data

2006-08-09 Thread Brad Bonkoski
Ross wrote: At the mometn I have this function display_result($module_no) { $count = 0; //Of course you *should* initialize $count $start = 1; $end = 3; if ($module_no != "") { $module_no =unserialize ($module_no); foreach ($module_no as $number => $data) { $count=$count+1;