以下是试图打印某些语句的PHP代码。但它是所有打印以下错误:PHP回显代码不能正常工作
解析错误:语法错误,在C意想不到T_STRING:\ Program Files文件\ Apache的集团\的Apache2 \ htdocs目录\ chat_status.php上线8
的代码:
<?php
session_start();
$con=mysql_connect("localhost","hi","hello");
mysql_select_db("my_db",$con);
$check_table=mysql_query("SELECT * FROM `$row[studentid]"."to"."$_GET[id]`);
if($check_table!=FALSE)
{
$asd="no suggestion";
echo $asd;
}
else
{
$result1=mysql_query("SELECT * FROM students WHERE email='$_SESSION[user_name]'");
$row=mysql_fetch_array($result1);
$create_table="CREATE TABLE `$row[studentid]"."to"."$_GET[id]`(post_number int not null
auto_increment,primary key(post_number),data text(20000))";
$result=mysql_query($create_table,$con);
}
?>
语法高亮使你的错误远 – 2013-03-26 20:26:14
这是因为在C有意想不到的T_STRING: \ Program Files \ Apache Group \ Apache2 \ htdocs \ chat_status.php第8行 – 2013-03-26 20:26:20
是的,关闭第8行的双引号 – JakeCataford 2013-03-26 20:27:17