Hi all,
i have this bit of an problem.
I have an error an a page and i want it outa there.
the error:
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/virtual/site15/fst/var/www/html/staf.php on line 106
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/virtual/site15/fst/var/www/html/staf.php on line 107
Warning: Wrong parameter count for mysql_free_result() in /home/virtual/site15/fst/var/www/html/staf.php on line 117
Warning: mysql_close(): no MySQL-Link resource supplied in /home/virtual/site15/fst/var/www/html/staf.php on line 118
the code:
db.php
$connection = mysql_connect($host, $username, $password);
mysql_select_db($database, $connection);
script.php
include "http://www.streetfreaks.nl/includes/db.php";
$sql="SELECT userid,nicknaam,user_level FROM users WHERE user_level=<'2' ORDER BY user_level DESC";
$res= mysql_query($connection, $sql);
while ($ligne = mysql_fetch_object ($res))
{
?>
-------------
and
-------------
<?php
}
mysql_free_result();
mysql_close();
?>
In the past i knowed this problem but i can't get it in my mind.
can someone point me out the error. ?
Thnx in advance ,
Benson