php man page for msql_query

Query: msql_query

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

MSQL_QUERY(3)															     MSQL_QUERY(3)

msql_query - Send mSQL query

SYNOPSIS
resource msql_query (string $query, [resource $link_identifier])
DESCRIPTION
msql_query(3) sends a query to the currently active database on the server that's associated with the specified link identifier.
PARAMETERS
o $query - The SQL query. o $ link_identifier -The mSQL connection. If not specified, the last link opened by msql_connect(3) is assumed. If no such link is found, the function will try to establish a link as if msql_connect(3) was called, and use it.
RETURN VALUES
Returns a positive mSQL query identifier on success, or FALSE on error.
EXAMPLES
Example #1 msql_query(3) example <?php $link = msql_connect("dbserver") or die("unable to connect to msql server: " . msql_error()); msql_select_db("db", $link) or die("unable to select database 'db': " . msql_error()); $result = msql_query("SELECT * FROM table WHERE id=1", $link); if (!$result) { die("query failed: " . msql_error()); } while ($row = msql_fetch_array($result)) { echo $row["id"]; } ?>
SEE ALSO
msql_db_query(3), msql_select_db(3), msql_connect(3). PHP Documentation Group MSQL_QUERY(3)
Related Man Pages
mysql_query(3) - php
mysql_unbuffered_query(3) - php
msql_fetch_object(3) - php
msql_fetch_row(3) - php
msql_pconnect(3) - php
Similar Topics in the Unix Linux Community
query to get a value from database
how to convert the result of the select query to comma seperated data - urgent pls
How can I create a file
SQL : Fine tune Insert by query
How to print the output of a select query using shell script?