I want to show a message box when data is already inserted in to MySQl table. My code is as below :
if($insert_query)
{
<script type='text/javascript'>
$.msgBox('Data Added');
window.location = 'bentry.php';
</script>
}
But alert is not shown. How to solve this problem.