regarding, jb at stormvision dot com dot na's post (below)

i need to output
&row0=article__2|aaaa|tipo 1:&row1=art2|bbbbb|Tipo 2

how can i achieve this?

This might be usefull for people that work with lots of rows and want to place them all into one array for later usage. This script just takes care of all the tedious work one would have and puts all neccessary field names into your array automatically. This way you can use this script over and over for all kind of mysql functions.
$result=mysql_query("select * from mydata order by 'id'")or die('died');
$num_rows = mysql_num_rows($result);
$name = mysql_field_name($result, $j);

For Later in the script you may use the below array to gain access to your data

$ii=count($object); //quick access function
echo $object[$i]['your_field_name'];

hope it helps

Kindest Regards,
Pedro Furtado

Reply via email to