日期:2010-12-22 浏览次数:20467 次
PutEnv("ORACLE_SID=ORASID"); $connection = Ora_LOGOn ("username", "password"); if ($connection == false){ echo Ora_ErrorCode($connection).": ".Ora_Error($connection)." "; exit; } $cursor = Ora_Open ($connection); if ($cursor == false){ echo Ora_ErrorCode($connection).": ".Ora_Error($connection)." "; exit; } $query = "create table email_info " . "(fullname varchar(255), email_address varchar(255))"; $result = Ora_Parse ($cursor, $query); if ($result == false){ echo Ora_ErrorCode($cursor).": ".Ora_Error($cursor)." "; exit; } $result = Ora_Exec ($cursor); if ($result == false){ echo Ora_ErrorCode($cursor).": ".Ora_Error($cursor)." "; exit; } Ora_Commit ($connection); Ora_Close ($cursor); Ora_LOGOff ($connection); ?> |
PutEnv("ORACLE_SID=ORASID"); $connection = OCILOGOn ("username", "password"); if ($connection == false){ echo OCIError($connection)." "; exit; } $query = "create table email_info " . "(fullname varchar(255), email_address varchar(255))"; $cursor = OCIParse ($connection, $query); if ($cursor == false){ echo OCIError($cursor)." "; exit; } $result = OCIExecute ($cursor); if ($result == false){ echo OCIError($cursor)." "; exit; } OCICommit ($connection); OCILOGOff ($connection); ?> |
if ($submit == "click"){ // The submit button was clicked! // Get the input for fullname and email then store it in the database. PutEnv("ORACLE_SID=ORASID"); $connection = Ora_LOGOn ("username","password"); if ($connection == false){ echo Ora_ErrorCode($connection).": ".Ora_Error($connection)." "; exit; } $cursor = Ora_Op
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|