OK sorry bout that iv bein working on this and if created this script
Code:
<?php
//Database Connectivity Variables//
$DBhost = "localhost";
$DBuser = "joj_test";
$DBpass = "test";
$db_name = "joj_stargate";
$login_table = "Finnal_Users";
//Create a connection to the MySQL Database//
$connection = @mysql_connect($DBhost,$DBuser,$DBpass) or die("Couldn't Connect.");
$db = @mysql_select_db($db_name, $connection) or die("Sorry, I could not select the requested Database ");
$query = "SELECT * FROM $login_table WHERE Username = '$username'";
$result = mysql_query($query);
while($row = mysql_fetch_array($result)){
$Race = $row["Race"];
echo 'status=$Race';
exit;
}
?>
What i want it do do its fetch the race from the SQL table so if say user X loges in then runs this script the php searched for user X's Race then displays the race! The script iv got above doesnt seam to work right all i get in my output value is "$race" and no "Human" Which is what shoud come out for that user!
Im finding this hard to explain so i've uploaded a picture i want to loadinto flash useing echo the race of a user so i tried the above script but when i tested it instead of getting "Asgard" in the status bar i got "$Race" SO im guessing iv done something wrong!