你好这是我的代码:
<?
$DBNAME='astbase.db';
$MYTABLE ='extens';
$wsdl = "wwwwww";
$reply = "wwww";
$idsms = "4";
$exten = 100;
$base= new PDO('sqlite:'.$DBNAME);//, 0666, $err);
$query = "CREATE TABLE IF NOT EXISTS $MYTABLE(id INTEGER PRIMARY KEY,exten VARCHAR(255), wsdl TEXT, reply text, idsms INTEGER)";
$results = $base->exec($query);
print_r($results);
$query = "INSERT INTO $MYTABLE(id,exten,wsdl,reply,idsms) VALUES(NULL,'$exten','$wsdl','$reply',$idsms)";
$results = $base->exec($query);
print_r($results);
?>
当我在命令行(php5 script.php)中执行脚本时,它工作正常,但是当我用网络浏览器运行它时,只执行第一条语句!!!怎么了 ??
谢谢