PHP向mysql插入数据总是失败
<?phpinclude('conn.php');$vid=$_POST["vid"];$type=$_POST["type"];$title=$_POST["title...
<?php
include('conn.php');
$vid=$_POST["vid"];
$type=$_POST["type"];
$title=$_POST["title"];
$image=$_POST["image"];
$date=$_POST["date"];
echo "提交中...";
echo "<br />";
$sql="insert into BKNV_VIDEOS(id,vid,type,title,image,date) values(NULL,'$vid','$type','$title','$image','$date')";
echo $sql."<br />";
if (!mysql_query($sql,$line))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
?>
总是提示ERROR: 展开
include('conn.php');
$vid=$_POST["vid"];
$type=$_POST["type"];
$title=$_POST["title"];
$image=$_POST["image"];
$date=$_POST["date"];
echo "提交中...";
echo "<br />";
$sql="insert into BKNV_VIDEOS(id,vid,type,title,image,date) values(NULL,'$vid','$type','$title','$image','$date')";
echo $sql."<br />";
if (!mysql_query($sql,$line))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
?>
总是提示ERROR: 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |