$login="axel";
$pass ="popcorn";
$db=mysql_connect("localhost",$login,$pass);
mysql_select_db("sales",$db);
$sql="select * from clients";
$result=MySQL_query($sql,$db);
$myrow=MySQL_fetch_array($result);
echo "
" . $myrow["Address"] . " |
";
?>
that is if you database is "sales" - your table is "clients" - and your column is "Address".
first you will want to go into sme through ssh and log into mysql as root, then create a database. " create database sales; "
then you would want to ceate a user:
GRANT ALL PRIVILEGES ON sales.* TO axel@localhost IDENTIFIED BY popcorn WITH GRANT OPTION;
that sets up the database and php can access it, but you still need tables and data in the tables- hope that helps
