Its great to be here.
Anyways, im tying out my first php/mysql script.
So far, so good.
It submits the info you have sent to the MYSQL table, but i cant figure out how to display it.
I have this code to display it so far:
Code: Select all
<?
$host = "localhost";
$user = "meltedpi_defualt";
$password = "---------";
$database = "meltedpi_php";
$dbh = mysql_connect ($host, $user, $password) or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ($database);
$getaim = mysql_query("SELECT * FROM `aim` ORDER BY id ") or die (mysql_error());
WHILE($aim = mysql_fetch_array($getaim)){
$uname = $aim[uname];
}
?>I have a table called "uname", and i want it to display that.
I also have a ID table, so it can list them in order.
When it does display that, i want it to put a brake next to it so it can list all of the usernames in a row.
So far, all i get is a blank screen.
If any one could help me here, i would greatly appreciate it!
Thanks,
MeltedPixel