Thank you, bradgrafelman, for your kind response!
Alas, the solution you suggest doesn't work.
Using:
$array[] = $row['img_name'];
returns to Flash "Array" instead of a string containing the expected image names...
Please, keep in mind that my only problem is:
Why PHP outputs a wrong number of rows (3 instead of 2)?
I know that the output I use in Flash as an "array" is in fact a string with a "|" delimiter
print "&numberOfRows=".mysql_num_rows($sql)."&myArray=".$array;
It gives me the right names of the images and in the correct order as expected and I can easily manipulate it in Flash to obtain the results I want.
So, I do not wish to modify something which is actually working nice...
I see it in Flash in a trace field (it's exactly the same as using print_r() in PHP...).
About, your recommendation for using mysqli, I know that.
But it implies to modify too much scripts and, for the moment, I don't have time to dedicate to this task.
I'll. for sure, do it in the future when my present project will be completed.
Best regards,
Gerard