thank you! It helped me a lot, now I can insert things in my database.. the only problem is that it is not being displayed in my page, is this code wrong?
$query = "SELECT event
FROM events
WHERE date = '$year'-'$month'-'$d'"; // here I am trying to compare the date of the data in my table with the values of those variables, is is ok?? i also had i as date='$year-$month-$d'...
$result = mysql_query($query);
while ($row=mysql_fetch_assoc($result)){
echo $row['event'];
}