时间:2021-07-01 10:21:17 帮助过:24人阅读
War-game -Add Your score War game - add your score
Thanks for adding your new high score!'; echo 'FIRST_NAME:'.$first_name.'
'; echo '
'; echo 'LAST_NAME:'.$last_name.'Score:'.$score.'
'; echo '<<Back to hight score
'; //clear the score data to clear the form $firet_name=""; $last_name=""; mysqli_close($dbc); } ?>
表是这样的
回复讨论(解决方案)
这上面在向mysql传入数据部分出了错误,但是我没找到,麻烦大家帮看看谢谢
出错的时候提示什么错误?
$query="INSERT INTO score_lis (first_name,last_name,score) VALUES ('$first_name','$last_name','$score')";空格Call to undefined function mysqli_connect() in /var/www/addscore.php on line 25
检查php.ini中的extension=php_mysql.dl有没有去掉注释(;为注释符)如果有就去掉,重启Apache
Call to undefined function mysqli_connect() in /var/www/addscore.php on line 25
谢谢啦,找了半天,光找语法,忘记了自己今天刚重配置完服务器,搞定了 非常感谢