Hi im creating an ecard type thing and when i go to retrive som data its pulling everything from the database...
im using this code :
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
<?php
// set the variables
$host = "localhost";
$user = "xxx";
$password = "xxx";
$dbname = "xxx";
$tablename = "xxx";
$link = mysql_connect ($host, $user, $password);
$query = "SELECT * from $tablename";
$result = mysql_db_query ($dbname, $query, $link);
while (list($youremail, $youremail, $message) = mysql_fetch_row($result)) {
print ("$youremail");
print ("$receiveremail");
print ("$message");
}
mysql_close ($link);
?>
-=-=-=-=-=-=-=-=-=-=-=-=-=-
also if u want to see what i mean then click here
http://www.popcop.co.uk/ecards/viewcard.php?id=19