diff --git a/reference/mysql/functions/mysql-fetch-assoc.xml b/reference/mysql/functions/mysql-fetch-assoc.xml index 1cde7c01db..41851fffca 100644 --- a/reference/mysql/functions/mysql-fetch-assoc.xml +++ b/reference/mysql/functions/mysql-fetch-assoc.xml @@ -1,6 +1,6 @@ - + mysql_fetch_assoc Fetch a result row as an associative array @@ -11,11 +11,11 @@ &mysql.alternative.note; mysqli_fetch_assoc - PDOStatement::fetch (PDO::FETCH_ASSOC) + PDOStatement::fetch - + &reftitle.description; @@ -43,7 +43,7 @@ &reftitle.returnvalues; - Returns an associative array of strings that corresponds to the fetched row, or + Returns an associative array of strings that corresponds to the fetched row, or &false; if there are no more rows. @@ -72,13 +72,13 @@ if (!$conn) { echo "Unable to connect to DB: " . mysql_error(); exit; } - + if (!mysql_select_db("mydbname")) { echo "Unable to select mydbname: " . mysql_error(); exit; } -$sql = "SELECT id as userid, fullname, userstatus +$sql = "SELECT id as userid, fullname, userstatus FROM sometable WHERE userstatus = 1"; @@ -118,10 +118,10 @@ mysql_free_result($result); Performance - An important thing to note is that using - mysql_fetch_assoc is not + An important thing to note is that using + mysql_fetch_assoc is not significantly slower than using - mysql_fetch_row, while it + mysql_fetch_row, while it provides a significant added value. diff --git a/reference/mysql/functions/mysql-fetch-object.xml b/reference/mysql/functions/mysql-fetch-object.xml index a2f4e12367..24198e8920 100644 --- a/reference/mysql/functions/mysql-fetch-object.xml +++ b/reference/mysql/functions/mysql-fetch-object.xml @@ -1,6 +1,6 @@ - + mysql_fetch_object Fetch a result row as an object @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_fetch_object - PDOStatement::fetch (PDO::FETCH_OBJ) + PDOStatement::fetch diff --git a/reference/mysql/functions/mysql-fetch-row.xml b/reference/mysql/functions/mysql-fetch-row.xml index 21516121d3..ce2b8e5683 100644 --- a/reference/mysql/functions/mysql-fetch-row.xml +++ b/reference/mysql/functions/mysql-fetch-row.xml @@ -1,6 +1,6 @@ - + mysql_fetch_row Get a result row as an enumerated array @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_fetch_row - PDOStatement::fetch (PDO::FETCH_NUM) + PDOStatement::fetch @@ -40,7 +40,7 @@ &reftitle.returnvalues; - Returns an numerical array of strings that corresponds to the fetched row, or + Returns an numerical array of strings that corresponds to the fetched row, or &false; if there are no more rows. diff --git a/reference/mysql/functions/mysql-get-client-info.xml b/reference/mysql/functions/mysql-get-client-info.xml index 75e89495d3..d46b4cb101 100644 --- a/reference/mysql/functions/mysql-get-client-info.xml +++ b/reference/mysql/functions/mysql-get-client-info.xml @@ -1,6 +1,6 @@ - + mysql_get_client_info Get MySQL client info @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_get_client_info - PDO::getAttribute (PDO::ATTR_CLIENT_VERSION) + PDO::getAttribute @@ -34,7 +34,7 @@ The MySQL client version. - + &reftitle.examples; diff --git a/reference/mysql/functions/mysql-get-host-info.xml b/reference/mysql/functions/mysql-get-host-info.xml index 6249496f25..229a07432e 100644 --- a/reference/mysql/functions/mysql-get-host-info.xml +++ b/reference/mysql/functions/mysql-get-host-info.xml @@ -1,6 +1,6 @@ - + mysql_get_host_info Get MySQL host info @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_get_host_info - PDO::getAttribute (PDO::ATTR_CONNECTION_STATUS) + PDO::getAttribute @@ -23,7 +23,7 @@ resourcelink_identifierNULL - Describes the type of connection in use for the connection, including the + Describes the type of connection in use for the connection, including the server host name. @@ -40,7 +40,7 @@ &reftitle.returnvalues; - Returns a string describing the type of MySQL connection in use for the + Returns a string describing the type of MySQL connection in use for the connection&return.falseforfailure;. diff --git a/reference/mysql/functions/mysql-get-server-info.xml b/reference/mysql/functions/mysql-get-server-info.xml index ee0707de64..1f8584af4b 100644 --- a/reference/mysql/functions/mysql-get-server-info.xml +++ b/reference/mysql/functions/mysql-get-server-info.xml @@ -1,6 +1,6 @@ - + mysql_get_server_info Get MySQL server info @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_get_server_info - PDO::getAttribute (PDO::ATTR_SERVER_VERSION) + PDO::getAttribute diff --git a/reference/mysql/functions/mysql-set-charset.xml b/reference/mysql/functions/mysql-set-charset.xml index f112f484d4..a6e1c3b4f4 100644 --- a/reference/mysql/functions/mysql-set-charset.xml +++ b/reference/mysql/functions/mysql-set-charset.xml @@ -1,6 +1,6 @@ - + mysql_set_charset Sets the client character set @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_character_set_name - PDO::setAttribute (e.g., $db->setAttribute(PDO::MYSQL_ATTR_INIT_COMMAND, "SET NAMES 'utf8'");) + PDO::setAttribute @@ -24,7 +24,7 @@ resourcelink_identifierNULL - Sets the default character set for the current connection. + Sets the default character set for the current connection. @@ -68,7 +68,7 @@ - + &reftitle.seealso; @@ -78,7 +78,7 @@ - + - + mysql_stat Get current system status @@ -11,7 +11,7 @@ &mysql.alternative.note; mysqli_stat - PDO::getAttribute (PDO::ATTR_SERVER_INFO) + PDO::getAttribute