Long Break from MySQL...
Posted: Wed Oct 15, 2003 10:03 pm
I took a long break from MySQL, and scripting..And I am, I hate to say, a newbie again. I am currently working on a self project, an online game. Basically, I need to know how to print out a line from the MySQL database, I know this sounds stupid, but I can't figure it out, it may be the lack of sleep plus the amount of caffiene, who knows.
. Here is my code so far that doesn't work, hopefully I am close:
Thanks in advance.
Code: Select all
<?php
$uname = "random";
$pword = "random";
$db = "random";
mysql_connect("localhost", $uname, $pword);
mysql_select_db($db);
$result = mysql_query("SELECT gold FROM user_info");
mysql_fetch_array($result);
echo($result);
?>