请帮帮忙,解析错误一边写代码
Error
解析错误:语法错误,意想不到的 '如果'(T_IF)在C:\ XAMPP \ htdocs中\上线电子商务\核心\的init.php 3
My Code
<?php
$db = mysqli_connect('127.0.0.1','root','','kidsshowroom')
if(mysqli_connect_errno()) {
echo 'Database Connection failed with the following errors: '.mysqli_connect_error();
die();
}
?>
检查此问题http://stackoverflow.com/questions/18050071/php-parse-syntax-errors-and-how-to-solve-them –