Surely you know how to query your table don't you? > No, sorry, I'm not that good at php so I really need your help!
Hello,
This is the only things I've written:
<?php
$dbname = "hoster";
$dbuser = "hoster";
$dbpass = "hoster";
$dbhost = "localhost";
$connect = mysql_connect ($dbhost,$dbuser,$dbpass) or die("Could not connect to the database! ".mysql_error());
mysql_select_db($dbname,$connect) or die("Could not select database! ".mysql_error());
$date = date("Y-m-d");
$query = "SELECT date FROM multihoster
ORDER BY date DESC;";
$result = mysql_query($query);
echo $result;
?>
I now, it's completely wrong but anyway, I want it to list the fields with a date older than one year. In other words, I need it to check all accounts and the echo which accounts are older than one year.
Isn't it possible to use that if prefix, "if one year or older"?
Thanks for your help
Best Regards
Oskar R