It took about 10 hours, and the guidance provided by teacher Niu B made the page more colorful.
Then during the competition, the time was two hours, and the school’s computer room was a bit tricky. It was ie6 and DW was the 2004 version.
The php part of this source code is just a message board
I encountered a coding error at that time. The reason was that mysql_query("set names utf8"); was placed in the if statement. As a result, the insertion was not messy, but when it was read out, it was ?????question mark one Heap.
[php]
$conn=mysql_connect('localhost','root','1234');
Mysql_select_db('kefei');
Mysql_query("set names utf8");
$result=mysql_query("select * from liuyan");
While($row=mysql_fetch_assoc($result)){
var_dump($row);
}
?>
$conn=mysql_connect('localhost','root','1234');
mysql_select_db('kefei');
mysql_query("set names utf8");
$result=mysql_query("select * from liuyan");
while($row=mysql_fetch_assoc($result)){
var_dump($row);
}
?>