Hey guys I'm new to this I bought this script yesterday and on my site I keep getting this Warning need help!!!
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\Hosting\6967501\html\config.php on line 13
<?php
// Provide Values for Database
$dbhost="MYHOST";
$dbname="DB_NAME";
$dbuser="DB_USER";
$dbpass="DB_PASSWORD";
//Don't change the below 2 lines
$dbconnect=mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db($dbname);
$rs=mysql_query("select * from adminsettings");
if(mysql_num_rows($res)>0) {
$arr=mysql_fetch_array($rs);
$sitename=$arr[0];
$siteurl=$arr[1];
$webmasteremail=$arr[2];
$adminpass=$arr[3];