The site encountered an error while retrieving. The site may be closed for maintenance or incorrectly configured.
Upload my files to the server and open the Web site prompt:
The site encountered an error while retrieving http://www.hu0010.com/. The site may be closed for maintenance or incorrectly configured.
Do not know what is going on, at first I was index.html upload, but the inside of the PHP code does not seem to be used, the others are displayed normal, and then save as index.php after opening the above prompts, with this will not open!
Website content index.php
<title>Blog</title>
"Hello world!"
Include ("conn.php");
?>
if (!empty ($_get[' Keys ')) {
$w = "' title ' Like '% '. $_get[' Keys ']." %'";
}else{
$w = 1;
}
Page out
$pagesize = 10; Show number of bars per page
$rs =mysql_fetch_row (mysql_query ("SELECT count (*) from ' blog ')") [0]; The total number of records reached
$pages =ceil ($rs/$pagesize); Total/Number of pages = Page Ceil represents 1
This is the page that gets the value of page, if there is no page, then the number of pages is 1.
$page =isset ($_get[' page ')? Intval ($_get[' page ')): 1;
$offset = $pagesize * ($page-1); //
$query =mysql_query ("Select * from ' blog ' ORDER by id desc limit $offset, $pagesize");
while ($rs =mysql_fetch_array ($query)) {
?>
">
> read the full text >>
Category:
Switch ($rs [' f_id ']) {
Case 1:
echo "Personal log";
Break
Case 2:
echo "Category 2";
Break
Case 3:
echo "Category 4";
Break
Case 4:
echo "Category 4";