[PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente FROM cliente); echo select id='listacliente' name='listacliente'; while($row =

Re: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread 9el
On Sun, Apr 5, 2009 at 10:08 PM, MEM tal...@gmail.com wrote: Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente FROM cliente); echo select

RE: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
why did you forget to use the debugging functions : print_r() and var_dump() for the results? So, you'll get some idea beforehand of posting the problem here. I am looking at the code in a hurry so I cant help you much right away. Lenin http://www.twitter.com/nine_L www.twitter.com/nine_L

Re: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread 9el
Because I’ve never debug on my entire life of programming (2 months). :D In the meanwhile, I will search how to debug using print_r and var_dump. ROFL ha hahaha echo 'pre', print_r($array),'/pre'; // here pre is used to keep the way its outputed in HTML echo 'pre',

RE: [PHP] Newibie: fetch Obj question - data not showing.

2009-04-05 Thread MEM
On Behalf Of 9el On Sun, Apr 5, 2009 at 10:08 PM, MEM mailto:tal...@gmail.com tal...@gmail.com wrote: Hello, 1) Ok, with mysqli, to fetch data from a database to a select drop down list, we would do something like this right? : ?php $result = $mysqli-query(SELECT id_cliente, nome_cliente