[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
doquery.php3 suggestion
I noticed that doquery.php3 returns the row to the program after doing a
mysql_fetch_row. How about changing it to a mysql_fetch_array? That
makes the result variable an associative array, making it possible to
refer to it in the PHP code by field name. MUCH more readable, and I
believe the performance impact is minimal. From the PHP manual:
--------
An important thing to note is that using mysql_fetch_array() is NOT
significantly slower than using mysql_fetch_row(), while it provides a
significant added value.