|
<?php
$username = "*";
$password = "*";
$hostname = "localhost";
$database = "*";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL");
$selected = mysql_select_db($database,$dbh)
or die("Could not select");
$result = mysql_query("SELECT DISTINCT email FROM info");
echo $result
?>
like that?
|