Free Php Mysql Functions like mysql_ affected_ rows, mysql_ change_ user, mysql_ client_ encoding, mysql_ close, mysql_ connect, mysql_ create_ db, mysql_ data_ seek, mysql_ db_ name, mysql_ db_ query, mysql_ drop_ db, mysql_ errno, mysql_ error, mysql_ escape_ string, mysql_ fetch_ array, mysql_ fetch_ assoc, mysql_ fetch_ field, mysql_ fetch_ lengths, mysql_ fetch_ object, mysql_ fetch_ row, mysql_ field_ flags, mysql_ field_ len, mysql_ field_ name, mysql_ field_ seek, mysql_ field_ table, mysql_ field_ type, mysql_ free_ result, mysql_ get_ client_ info, mysql_ get_ host_ info, mysql_ get_ proto_ info, mysql_ get_ server_ info, mysql_ info, mysql_ insert_ id, mysql_ list_ dbs, mysql_ list_ fields, mysql_ list_ processes, mysql_ list_ tables, mysql_ num_ fields, mysql_ num_ rows, mysql_ pconnect, mysql_ ping, mysql_ query, mysql_ real_ escape_ string, mysql_ result, mysql_ select_ db, mysql_ set_ charset, mysql_ stat, mysql_ tablename, mysql_ thread_ id, mysql_ unbuffered_ query,
mysql_create_db — Create a MySQL database
Version:
(PHP 4, PHP 5)
Syntax:
bool mysql_create_db ( string $database_name [,resource $link_identifier])
Description:
mysql_create_db() attempts to create a new database on the server associated with the specified link identifier.
database_name
The name of the database being created.
link_identifier
The MySQL connection. If the link identifier is not specified, the last link opened by mysql_connect() is assumed. If no [...]
Also filed in
|
|
mysql_connect — Open a connection to a MySQL Server
Version:
(PHP 4, PHP 5)
Syntax:
mysql_connect($server,$user,$password,$newlink,$clientflag)
Description:
The mysql_connect() function opens a non-persistent MySQL connection.
server
The server is a String. It can also include a port number. e.g. “hostname:port” or a path to a local socket e.g. “:/path/to/socket” for the localhost.
user
User is a String containing the user name. Default value [...]
Also filed in
|
|
Thursday, February 5, 2009
mysql_close — Close MySQL connection
Version:
(PHP4, PHP5)
Syntax:
bool mysql_close ([ resource $link_identifier ] )
Description:
The mysql_close() function closes a non-persistent MySQL connection.
$link_identifier
Optional. Specifies the MySQL connection to close. If not specified, the last connection opened by mysql_connect() is used.
Return Values:
Returns TRUE on success or FALSE on failure.
Example mysql_close():
<?php
$con = mysql_connect("localhost","user","password");
if (!$con)
{
die(‘Could not connect: ‘ . mysql_error());
[...]
Also filed in
|
|
Thursday, February 5, 2009
mysql_client_encoding — Returns the name of the character set
Version:
(PHP 4 >= 4.3.0, PHP 5)
Syntax :
string mysql_client_encoding ([resource $link_identifier])
Description :
The mysql_client_encoding() function returns the name of the character set for the current connection.
$link_identifier
Optional. Specifies the MySQL connection. If not specified, the last connection opened by mysql_connect() or
mysql_pconnect() is used.
Return Values:
Returns the default character set name for [...]
Also filed in
|
|
Wednesday, February 4, 2009
mysql_change_user — Change logged in user of the active connection
Syntax :
int mysql_change_user ( string $user , string $password [, string $database [, resource $link_identifier]] )
string user: Username to log in with
string password: Password to use
string database (optional): Default database to use for queries
Description :
mysql_change_user() changes the logged in user of the current active connection, or [...]
Also filed in
|
|
Wednesday, February 4, 2009
mysql_affected_rows() : Returns the number of affected rows in the previous MySQL operation.
Version :
(PHP 3, PHP 4, PHP 5)
Syntax :
int mysql_affected_rows ([ resource $link_identifier ] )
Description :
mysql_affected_rows() returns the number of rows affected by the last INSERT, UPDATE or DELETE query associated
with link_identifier.
This function returns the number of affected rows on success, or -1 if [...]
Also filed in
|
|