Как вызвать функцию PHP в JavaScript?
у меня есть index.php <select id="year_list" name="year_list" onchange="check_year_event('year_list', 'event_list');" > . . . </select> <select id="event_list" name="event_list" onchange="check_year_event('year_list', 'event_list');" > . . . </select> . . . <?php function checkYearandEvent($year, $event) { $year_event = mysql_query("SELECT * FROM year_event WHERE year = '$event' AND event = '$event'") if (mysql_num_rows($year_event) > 0) { // do this } […]