Re: [PHP-DB] Get a single result

2002-10-03 Thread Petr Tomenendál
Hi, change line 170 to this: $form_category_id[$i] = mysql_result($result_category_id, 0, 0); In each iteration your program executes new SQL query, which selects only one column from table, and i think, it selects only one row too. So you have to select first column from first row. With your cod

Re: [PHP-DB] Get a single result

2002-10-02 Thread bbonkosk
---> mysql_result($result_category_id, 0, $i); I think it is compaigning about the '$i' of course we don't know what that is set to, so cannot help much. I would say it might not like it when '$i' is equal to 0... :-) -Brad > Hello guys. > > The scenery: I've got an array with some values st