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 querySYNOPSISresource msql_query (string $query, [resource $link_identifier])DESCRIPTIONmsql_query(3) sends a query to the currently active database on the server that's associated with the specified link identifier.PARAMETERSo $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 VALUESReturns a positive mSQL query identifier on success, or FALSE on error.EXAMPLESExample #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 ALSOmsql_db_query(3), msql_select_db(3), msql_connect(3). PHP Documentation Group MSQL_QUERY(3)
Related Man Pages |
---|
msql_fetch_array(3) - php |
fbsql_data_seek(3) - php |
msql_connect(3) - php |
msql_query(3) - php |
mssql_fetch_row(3) - php |
Similar Topics in the Unix Linux Community |
---|
query to get a value from database |
How can I create a file |
Connecting database |
Korn Script to connect and query oracle database |
Passing value of variable to a query within shell script |