利用OCI向資料表'email_info' 輸入資料
同上,只不過用OCI來寫
相關PHP代碼:
if ($submit == " click"){
// The submit button was clicked!
// Get the input for fullname and email then store it in the database.
Putv("ORACLE_SID=ORbase.
Putv("ORACLE_SID=ORbase
$connection = OCILogon ("username","password");
if ($connection == false){
echo OCIError($connection)." "; 🎜> }
$query = "insert into email_info values ('$fullname', '$email')";
$cursorif. $cursor == false){
echo OCIError($cursor)."
";
exit;
} echo OCIError($cursor)."
";
exit;
} }
else{
echo '
<FORM action=insert.php method=post@ <FORM > <INPUT name=fullname></INPUT>
請輸入Email 位址
<INPUToname=email> UT name=submit type=submit value= click></INPUT>
</FORM>
對了,這段腳本必須儲存為insert.php,因為在呼叫的頁面中指定insert.php為表單處理程序
http://www.bkjia.com/PHPjc/315637.html
www.bkjia.com
true
http: //www.bkjia.com/PHPjc/315637.html
TechArticle
利用OCI向資料表'email_info' 輸入資料同上,只不過用OCI來寫相關PHP代碼: if ( $submit == click){ // The submit button was clicked! // Get the input for fullnam...