Hello.
I have made a form thats stores i an databse, with 2 fields.
{name} and {date e.g. mm–dd–yyyy}
i have to get print all the names that has a date from the past monday to the next monday.
All the other results in the table should be in the table, but not shown on the html page.
right now i am using:
[php]<?php
$con = mysql_connect(“host”,“username”,“password”);
if (!$con)
{
die('Could not connect: ’ . mysql_error());
}
mysql_select_db(“database”, $con);
$result = mysql_query(“SELECT * FROM taple”);
while($row = mysql_fetch_array($result))
{
echo $row[‘navn’];
}
mysql_close($con);
?>[/php]