💼 정보 ver1.0

mysql_free_result

James Wetzel 2009. 3. 13. 15:06
728x90
반응형

시나리오

mysql_free_result

(PHP 4, PHP 5)

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 afterwords */
$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'];
?>
비고
입력


728x90
반응형