php - Jquery post causes apache to hang -
i'm filling in element values in yui panel (dominserted) via jquery
this php
<?php $con = mysql_connect('sql', 'admin', '123'); mysql_select_db('sql'); $data_parent_type0 = mysql_real_escape_string($_post['data_parent_type0']); $result = mysql_query('select id,name email_templates description = "'.$data_parent_type0.'" , deleted = 0'); while($row = mysql_fetch_assoc($result)) { echo '<option value="'.$row['id'].'">'.$row['name'].'</option>' . "\n"; } mysql_close($con); ?>
this jquery
$(document).bind('domnodeinserted', '#composeheadertable0', function(event) { $("#data_parent_type0").click(function() { var data_parent_type0 = $('#data_parent_type0').val(); //alert(data_parent_type0); $.post("dbcall.php", { data_parent_type0: data_parent_type0}, function(result){ //alert(result); $("#email_template0").html(result); }); }); });
it works causes apache hang.
Comments
Post a Comment