php在sql中添加数据,使用php在oracle数据库中插入数据
以下代碼生成此代碼
Warning: oci_execute() [function.oci-execute]:
ORA-00911: invalid character in F:\wamp\www\SEarch Engine\done.php on line 17
代碼是……
include_once('config.php');
$db = oci_new_connect(ORAUSER,ORAPASS,"localhost/XE");
$url_name=$_POST['textfield'];
$keyword_name=$_POST['textarea'];
$cat_news=$_POST['checkbox'];
$cat_sports=$_POST['checkbox2'];
$anchor_text=$_POST['textfield2'];
$description=$_POST['textarea2'];
$sql1="insert into URL(Url_ID,Url_Name,Anchor_Text,Description)
VALUES( 9,".'{$url_name}'.",".'{$anchor_text}'.",".'{$description}'.")";
$result=oci_parse($db,$sql1);
oci_execute($result);
?>
總結(jié)
以上是生活随笔為你收集整理的php在sql中添加数据,使用php在oracle数据库中插入数据的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: php 正则表达式 取所有内容,php正
- 下一篇: ajax链接php,关于php:在aja