There are a lot of PHP MySQL tutorials on the net. What you want to do is about as basic as it gets.
First you should know a database has tables (which have names) and tables have columns (which have names). Databases don't have columns.
You will of course need to change the data in this to match your database and table names.
PHP Code:
<? php
mysql_connect("db.YOURDOMAIN", "DBUSERNAME", "DBPASSWORD");
mysql_select_db("DBNAME");
/*
the imaginary table 'tablename' has this data
name url
bob bobspage.html
john johnsbetterpage.html
*/
$query='SELECT * FROM tablename';
$result=mysql_query($q);
while($row=mysql_fetch_assoc($r)){
echo '<a href="'.$row['url'].'">'.$row['name'].'</a><br />';
}
?>
Anti Linux rants are usually the result of a lack of Linux experience, while anti Windows rants are usually a result of a lot of Windows experience.
Bookmarks