<< PHP ¿¡¼­ ¿À¶óŬ »ç¿ëÇϱâ : Á¢¼ÓÈ®ÀÎ >> ÀÛ¼ºÀÚ - ÀåÇüÈ­ (hhjang97@venus.uos.ac.kr) - http://php.pe.kr *. ¿À¶óŬ Á¢¼ÓÀÌ µÇ´ÂÁö È®ÀÎÇÑ´Ù. (¾ÆÀ̵ð: scott, ºñ¹ø:tiger, ORACLE_SID:orasid) user> sqlplus scott/tiger@oracle * PHP ¿¡¼­ ¿À¶óŬ Á¢¼ÓÀÌ µÇ´ÂÁö È®ÀÎÇÑ´Ù. connect.php ¿Í oracle_test.php ÆÄÀÏÀ» °°Àº µð·ºÅ丮¿¡ ³õ´Â´Ù. ======================= connect.php ========================= window.alert('$message') history.go(-1) "); } function echo_confirm($str,$url ) { $daytime = time(); echo(" "); }; # # DB¿¬°áÈÄ ¿¡·¯½Ã ½ÇÇàÇÏ´Â ÇÔ¼ö # function db_error($str) { global $connect; OciRollback($connect); OciLogoff($connect); error($str); # error() ÇÔ¼ö°¡ ¹Ì¸® Á¤ÀǵǾî ÀÖ¾î¾ß ÇÑ´Ù. }; //=============DB Á¢¼Ó ======================== // int OCILogon(string username, string password, string [ORACLE_SID]); $connect = ocilogon("scott", "tiger", "oracle") or die( " SQL server¿¡ ¿¬°áÇÒ ¼ö ¾ø½À´Ï´Ù."); ?> ======================= connect.php ========================= ========================= oracle_test.php ========================== 0 ) { print "\n"; print "\n"; while ( list( $key, $val ) = each( $results ) ) { print "\n"; } print "\n"; for ( $i = 0; $i < $nrows; $i++ ) { reset($results); print "\n"; while ( $column = each($results) ) { $data = $column['value']; print "\n"; } print "\n"; } print "
$key
 $data[$i]
\n"; } else { echo "No data found
\n"; } print "$nrows Records Selected
\n"; ############################################ OCIFreeStatement($stmt); OciLogoff($connect); ?> ========================= oracle_test.php ========================== - ºê¶ó¿ìÀú¿¡¼­ oracle_test.php ¸¦ È®ÀÎÇØ º»´Ù. ^^