that error is most likely down to the query you are running against the database, care to post it?
Printable View
that error is most likely down to the query you are running against the database, care to post it?
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/www/civsea.freehostia.com/config.php on line 28
<?php
ob_start();
# allows you to use cookies
$db_username = '*****';
# database username
$db_password = '*****';
# database password
$db_host = localhost;
# database host (usually localhost);
$db_database = 'localhost';
# database
$connect = mysql_connect("mysql2.freehostia.com","*****","*** ");
# connect to the database
mysql_select_db("$db_database",$connect);
# select the database
$uname = addslashes($_COOKIE['username']);
# get the username cookie
$pword = addslashes($_COOKIE['password']);
# get the password cookie
$query = "SELECT * FROM `users` WHERE username = '".$uname."' AND password = '".$pword."'";
# set a query
28 $online = mysql_fetch_array(mysql_query($query));
# set an array to get any stored information we want about the browsing user
include ("functions.php");
# include the functions
?>