PHP语句错误
错误:Parseerror:syntaxerror,unexpected''(T_ENCAPSED_AND_WHITESPACE),expectingidentifier...
错误:
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in F:\phpweb\add.php on line 4
代码:
行1 <?php
行2 include("conn.php");
行3 if($_POST['Submit']){
行4 echo $sql="INSERT INTO message(id,user,title,content,lastdate)values('',$_POST['user'],$_POST['title'],$_POST['content'],now())";
行5 }
行6 ?> 展开
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in F:\phpweb\add.php on line 4
代码:
行1 <?php
行2 include("conn.php");
行3 if($_POST['Submit']){
行4 echo $sql="INSERT INTO message(id,user,title,content,lastdate)values('',$_POST['user'],$_POST['title'],$_POST['content'],now())";
行5 }
行6 ?> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询