專業團隊提供抓漏、防水、專治奇怪漏水
免費到府估價,絕對專業,歡迎來電
桃園拆除不論您搜尋任何資訊,都能讓你可以很方便地找資料
精準投放客群,搶業績最給力,速洽諮詢

首頁  •  j2h 論壇 • 程式設計討論     • 

mysql_free_result 釋放記憶體

房東:小布丁
發表時間:2010-09-10
[檢舉]


參考一下吧

http://tw2.php.net/manual/en/function.mysql-free-result.php

$result = mysql_query(\"SELECT id,email FROM people WHERE id = \'42\'\");
if (!$result) {
echo \'Could not run query: \' . mysql_error();
exit;
}
/* Use the result, assuming we\'re done with it afterwards */
$row = mysql_fetch_assoc($result);

/* Now we free up the result and continue on with our script */
mysql_free_result($result);

echo $row[\'id\'];
echo $row[\'email\'];
?>



  • 贊助網站       

    廣利不動產-板橋在地生根最實在--新板特區指名度最高、值得您信賴的好房仲
    完整房訊,房屋、店面熱門精選物件,廣利不動產 優質仲介,房屋租賃、買賣資訊透明,交易真安心!
    廣利不動產-新板特區指名度最高、值得您信賴的好房仲
    您的托付,廣利用心為您服務



  •  共 0 人回應

    姓名:
    佈告內容: