Jump to content
GIGN Forum

Web Errors!


aaE
 Share

Recommended Posts

Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\inc\func.php on line 26

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\inc\func.php on line 26

}

$from = (($page-1)*$maxs);

$sel = mysql_query("SELECT * FROM amx_bans ORDER BY bid DESC LIMIT $from, $maxs");

$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM amx_bans"),0);

$total_pages = ceil($total_results / $maxs);

$x++;

if($page > 1 && $page < $total_pages){$laps = ($page-1);

echo " <a href=\"http://'".$url."'/?p=bans&page=$laps\">«</a> ";

}

for($i = 1; $i <= $total_pages; $i++){if($page == $i){echo " <a href=\"/?p=bans&page=".$i."\">$i</a> ";

}else{echo " <a href=\"/?p=bans&page=".$i."\">$i</a> ";

}

}

if($total_pages > 1 && $page != $total_pages){$laps = ($page+1);

echo " <a href=\"/?p=bans&page=$laps\">»</a> ";

}

}

?>

Link to comment
Share on other sites

tu meegjini piesleegties datubaazei, bet neesi noraadijis pareizus mysql_connect datus (lietotaaju, ip, paroli). bet peec taa ka errors izmet Access denied for user 'ODBC'@'localhost' liekas ka tu vispaar neesi noraadijis neko un pa tiesho saac veit sql vaicaajumu :D

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...