Fwd: Re: [PHP-DB] numeric string to single digit array

2008-03-26 Thread Richard Dunne
I did var_dump on the result resource and I got resource(5) of type (mysql result). --- Begin Message --- On Mar 26, 2008, at 12:30 PM, Evert Lammerts wrote: OK. Tried that and count comes back as 1. So your query returns only one record. Try $query ="Select answer from answers"; Why

Re: Fwd: Re: [PHP-DB] numeric string to single digit array

2008-03-26 Thread Chris
Richard Dunne wrote: Using this extract from http://ie.php.net/manual/en/control-structures.foreach.php Amaroq 09-Mar-2008 06:40 Even if an array has only one value, it is still an array and foreach will run it. The above code outputs: I'm an array. - So

Fwd: Re: [PHP-DB] numeric string to single digit array

2008-03-26 Thread Richard Dunne
Using this extract from http://ie.php.net/manual/en/control-structures.foreach.php Amaroq 09-Mar-2008 06:40 Even if an array has only one value, it is still an array and foreach will run it. The above code outputs: I'm an array. - So if I use: $query = "Se