> Hi there.I just want to know if the following code is suppose to work or
> not?
> I thing it must work!
> Is there something wrong with my while() funtion or must i use other
> functions?
>
> $query = "SELECT co_id FROM employee ORDER BY co_id";
> db_connect($query);
> while($row=db_range()){
> list($co_id) = $row ;
> $id[$i] = "$co_id" ;
> echo "<br>$id[$i]"; // This works
> $i++ ;
> }//end while 1
>
> $j = 0;
>
> while($id[$j]){
> echo "<br>$id[$i]"; // Doesnt wanna work. WHY ???
> $j++;
> }
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]