Is there an easy way to display records in a database?
I have the query set up but I don't know how to output the result to the user..
Here is my php:
<?php
session_start();
if (!isset($_SESSION['memberusername'])){
header("location:contractorlogin.php");
exit();
}
$user = $_SESSION['memberusername'];
$sql = "SELECT Username FROM contractors WHERE Username LIKE'" . $user . "'";
#result = mysql_query($sql);
?>
All I want to do is output the Username field to the person who is logged in as a test.
Is everything set up correctly and how would I output the result to the user on the screen?