diff --git a/reference/mysql/functions/mysql-fetch-array.xml b/reference/mysql/functions/mysql-fetch-array.xml index 718736b02c..6156dc78f7 100644 --- a/reference/mysql/functions/mysql-fetch-array.xml +++ b/reference/mysql/functions/mysql-fetch-array.xml @@ -1,5 +1,5 @@ - + @@ -74,8 +74,9 @@ select table1.field as foo table2.field as bar from table1, table2 $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_NUM)) + while ($row = mysql_fetch_array($result, MYSQL_NUM)) { printf ("ID: %s Name: %s", $row[0], $row[1]); + } mysql_free_result($result); ?> @@ -93,8 +94,9 @@ select table1.field as foo table2.field as bar from table1, table2 $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_ASSOC)) - printf ("ID: %s Name: %s", $row["id"], $row["name"]); + while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) { + printf ("ID: %s Name: %s", $row["id"], $row["name"]); + } mysql_free_result($result); ?> @@ -112,8 +114,9 @@ select table1.field as foo table2.field as bar from table1, table2 $result = mysql_query("SELECT id, name FROM mytable"); - while (($row = mysql_fetch_array($result, MYSQL_BOTH)) - printf ("ID: %s Name: %s", $row[0], $row["name"]); + while ($row = mysql_fetch_array($result, MYSQL_BOTH)) { + printf ("ID: %s Name: %s", $row[0], $row["name"]); + } mysql_free_result($result); ?>