Hey guys, i am currently working on an events calander for a clients web-site, and i am having some difficulty with a function. The function simply needs to query a database and check to see whether on a given date, there is a corresponding entry in the events table. If there is, the function should return 1, if there isn't, it should return 0. This is what i have so far:
function getDateLink($day, $month, $year)
{
$db = get_db_connection();
$result = mysql_query("SELECT * FROM event WHERE event_day = $day AND event_month = $month AND event_year = $event_year", $db);
}
Can someone please suggest what i should now use to determine the above scenario's, as i tried to use mysql_num_rows() but without success.
Your help would be much appreciated...😕