include("common.php");
mysql_connect($hostname,$username,$passwrd) OR DIE("Oh twadi! Couldnt connect to the database, sorry mate!");
@mysql_select_db($dbname) or die( "Unable to select database");
$query2 = "SELECT distinct folder FROM $tablename ORDER BY folder";
$result2 = mysql_query($query2) or die ("Whoops! Something wrong happened to the my database! It would be nice if you emailed me and told me!");
if ($result2) {
while ($r2 = mysql_fetch_array($result2)) {
extract($r2);
echo "".strtolower($folder)." | ";
}
mysql_free_result($result2);
}
?>
|