PHP Parse error: syntax error, unexpected 'echo' (T_ECHO)
$conn=mysqli_connect('localhost',/*Thehosttoconnectto连接MySQL地址*/'root',/*Theusertocon...
$conn = mysqli_connect(
'localhost', /* The host to connect to 连接MySQL地址 */
'root', /* The user to connect as 连接MySQL用户名 */
'a7b88935bb', /* The password to use 连接MySQL密码 */
'faka'); /* The default database to query 连接数据库名称*/
if(!$conn) echo "FAILD!";
else echo "OK!";
$sql="update peas_card_order set if_pay=1 where order='ORDER1468594952LGPOqZYVoKBQKoJY'"
echo $sql; 展开
'localhost', /* The host to connect to 连接MySQL地址 */
'root', /* The user to connect as 连接MySQL用户名 */
'a7b88935bb', /* The password to use 连接MySQL密码 */
'faka'); /* The default database to query 连接数据库名称*/
if(!$conn) echo "FAILD!";
else echo "OK!";
$sql="update peas_card_order set if_pay=1 where order='ORDER1468594952LGPOqZYVoKBQKoJY'"
echo $sql; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询