Answer the question
In order to leave comments, you need to log in
mysql_fetch_array() error expects parameter 1 to be resource, boolean given in?
$link=mysql_connect($host,$user,$pass);
mysql_select_db($db_name,$link);
$sql = mysql_query("SELECT `Name`, `BanAdmin` FROM `BanNames`", $link);
while ($result = mysql_fetch_array($sql)) {
echo $result['Name'].": ".$result['BanAdmin']." рублей<br>";
}
Answer the question
In order to leave comments, you need to log in
get request is not part of the url and does not fall into the rewrite rule.
# 301 --- http://www.test3.com/faq.html?faq=13&layout=bob => bbq.html
RewriteCond %{QUERY_STRING} (^|&)faq\=13($|&)
RewriteCond %{QUERY_STRING} (^|&)layout\=bob($|&)
RewriteRule ^faq\.html$ /bbq.html? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question