(this is what I do while learning c++ and c#)
$result = mysql_fetch_array($credits); // Gets the credit amount from the database, and places it in an array which is placed into 'result' variable. $my_credits = $result['credits']; // $result['COLUMN NAME'] to get the raw information from the array, variable 'my_credits' is just to simplify the result. echo "Welcome back, " . $_SESSION['Username'] . "! Your current credits are " . $my_credits; // Result: "Welcome back, King Aldrin! Your current credits are 400"
<!-- Login.php --> <form action='index.php' method='POST'> <input type='text' name='username' /> <input type='password' name='password' /> </form>