i would love if any one could help me out with this issue.
The config.php file which is included works fine, and the database loads fine.
It's just about echoing stuff out of the database when connected with an Included file. How would i do that the simplest cleanest way?
<?php
include 'config.php';
$username = $_COOKIE["ava_username"];
$user_id = $_COOKIE["ava_userid"];
$useridquery = mysql_query("SELECT id FROM ava_users WHERE username=$cookie");
if (isset($_COOKIE["ava_username"])) {
$result = mysql_query("SELECT points FROM ava_users WHERE username=$username");
echo "Cookie is enabled, and User status login is 0<br>";
echo "User ID: ". $user_id . "<br>";
echo "User Name: " . $_COOKIE["ava_username"]. "<br>";
while ($row = mysqli_fetch_array($result))
{
echo $row['points'] . " and Joined " . $row['joined'];
echo "<br>";
}
}
?>