The PHP MySQL API includes a function that is able to group the selection of a database and a query against that database. This function is called mysql_db_query() and can be used in place of mysql_select_db() and
mysql_query(). The syntax for the proper way to use this command is:
$query_result = mysql_db_query($db_name, $query, $link_id);
... or without the $link_id variable ...
$query_result = mysql_db_query($db_name, $query);
mysql_query(). The syntax for the proper way to use this command is:
$query_result = mysql_db_query($db_name, $query, $link_id);
... or without the $link_id variable ...
$query_result = mysql_db_query($db_name, $query);
Comments
Post a Comment