trying to echo the query? tsk tsk...lol
you have to add this ...
PHP Code:
<?php
include("config.php");
// connect to the mysql server
$link = mysql_connect($server, $db_user, $db_pass)
or die ("Could not connect to mysql because ".mysql_error());
// select the database
mysql_select_db(sparky_data)
or die ("Could not select database because ".mysql_error());
$cookie = $HTTP_COOKIE_VARS["starbits_username"];
$qry = mysql_query("SELECT bits FROM users WHERE username = '$cookie'") or die ("Could not get data because " . mysql_error());
while($row = mysql_fetch_assoc($qry)){
$get_info = $row[bits];
}
echo "<br>Bits: <a href='bits.php'>$get_info</a>";
?>
I'm pretty sure that will work...the $row[bits] part mite be wrong cuz idk what row you want to grab...good luck