Jump to content

my sql lookup help


marklarah

Recommended Posts

<?php



$check = "SELECT * FROM users WHERE active = '1'";
mysql_query($check) or die('Error, query failed now');
$us = mysql_num_rows($check);







echo '<table border="0">';

while ($us = mysql_fetch_assoc($check)){
echo '<tr><td><b>';
echo $us['username'];
echo ' (';
echo $us['level'];
echo ')<b></td></tr>';
}
echo '</table>';

?>

 

 

Why wont it work????

Link to comment
https://forums.phpfreaks.com/topic/86918-my-sql-lookup-help/
Share on other sites

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home2/tlscom/public_html/side.php on line 104

 

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home2/tlscom/public_html/side.php on line 114

Link to comment
https://forums.phpfreaks.com/topic/86918-my-sql-lookup-help/#findComment-444389
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.