want to insert data into table on cliking a form button
Posted: Tue Apr 20, 2004 2:32 am
i hav a table named 01_detail and on clicking add button i want to insert data into table ..my code is like this<input type="button" name="add" value="add" onClick="<?php
mysql_query("insert into 01_detail values(03,22,'00:00:00','00:00:00')");
?>">
when i run this query in mysql prompt it works fine but it doesnt work on cliking add button..anybody can tell me y..
mysql_query("insert into 01_detail values(03,22,'00:00:00','00:00:00')");
?>">
when i run this query in mysql prompt it works fine but it doesnt work on cliking add button..anybody can tell me y..