輸入待尋字串
  <?php
  require("http://php.wilson.gs");  // 回首頁
  echo "http://php.wilson.gs/bible/function.php : 函式:mysql_query()";


函式:mysql_query()


mysql_query

送出一個 query 字串。

語法: int mysql_query(string query, int [link_identifier]);

傳回值: 整數

函式種類: 資料庫功能

內容說明

本函式送出 query 字串供 MySQL 做相關的處理或者執行。若沒有指定 link_identifier 參數,則程式會自動尋找最近開啟的 ID。當 query 查詢字串是 UPDATE、INSERT 及 DELETE 時,傳回的可能是 true 或者 false;查詢的字串是 SELECT 則傳回新的 ID 值。joey@samaritan.com (09-Feb-1999) 指出,當傳回 false 時,並不是執行成功但無傳回值,而是查詢的字串有錯誤。

參考

mysql_db_query()  mysql_select_db()  mysql_connect()  


[ 上一頁 /bible/function.php 下一頁 ]



本站置於 NEC BIGLOBE 地球村網際網路  echo "Copyright © 1999-2001, Wilson Peng";  //隱私權保護政策
  mail("wilson@biglobe.net.tw", "Feedback", $message);
  ?>