i need help about how i can run a MySQL query (using PHP) everytime, when Drop-down is changed,the query is this one :
$sql = "TRUNCATE TABLE rabid_ratings";
$re = mysql_query($sql) or die(mysql_error());
So i dont need to pass any variables, just run it when drop-down is changed. Thank you guys
First of all, it’s a good idea to use jQuery for this task. Include the latest jQuery source (via google code api, for example), then insert this to the HTML:
and your truncate.php file must have: