Help, I write well after debugging when found not to show things, after the review element found 500 error
installation package provided by lnmp.org for the environment, PHP version 5.6
MySQL can be connected via the YA-black probe test
The following list of all the code please help analyze where the problem is, how to modify
The address is http://test.ni-co.moe/sousuo.php.
mysql.php main query output file
connect_error) { die("bad login: " . $conn->connect_error); };echo "mysql login good";$cx= 'select * from test where find_in_set($sousuo,name )';$dc= $conn->query($cx);echo $dc;$row = mysql_fetch_assoc(mysql_query($cx));//通过结果集得到行echo $row;foreach($row as $key => $value){ $new['p'.$key] = $value;//在变量名前面批量+ p,一个数组 }extract($new);//将数组的索引作为变量名加入符号表echo $row+"/"+$new;echo "pid:"+$puid+"
host:"+$puser+"
pwd:"+$fpwd;// :)?>
Sousuo.php for users to submit forms
提交信息
conifg.php information for MySQL
huancun.php To disable caching
Reply content:
Help, I write well after debugging when found not to show things, after the review element found 500 error
installation package provided by lnmp.org for the environment, PHP version 5.6
MySQL can be connected via the YA-black probe test
The following list of all the code please help analyze where the problem is, how to modify
The address is http://test.ni-co.moe/sousuo.php.
mysql.php main query output file
connect_error) { die("bad login: " . $conn->connect_error); };echo "mysql login good";$cx= 'select * from test where find_in_set($sousuo,name )';$dc= $conn->query($cx);echo $dc;$row = mysql_fetch_assoc(mysql_query($cx));//通过结果集得到行echo $row;foreach($row as $key => $value){ $new['p'.$key] = $value;//在变量名前面批量+ p,一个数组 }extract($new);//将数组的索引作为变量名加入符号表echo $row+"/"+$new;echo "pid:"+$puid+"
host:"+$puser+"
pwd:"+$fpwd;// :)?>
Sousuo.php for users to submit forms
提交信息
conifg.php information for MySQL
huancun.php To disable caching
Your 500 mistake is obviously the program is wrong, the Web server reported that the code problem
The width of the id=body part is wider than that of the head.
You can view the following error log ~