Can i passing parameter to jquery, after inserting a new row which is in different php
<p>this is my jquery coding</p>

<pre><code>$('#btnKirimPesan').click(function(){
        $('#bantu').load('kirim_pesan.php', {'emailPenerima': $('#emailPenerima').val(), 'isiPesan': $('.isiPesan').val()});
    });
</code></pre>

<p>then this is on kirim_pesan.php</p>

<pre><code>&lt;?
include('../../config/buka_koneksi_db.php');
$query = "INSERT INTO pesan(emailPenerima, emailPengirim, statusBaca, isiPesan, waktuPesan) VALUES((SELECT emailUser FROM user WHERE MD5(emailUser) = '".$_POST['emailPenerima']."'), '".$_SESSION['email']."', 0, '".$_POST['isiPesan']."', NOW('d/m/Y/H/i/s'))";
$hasilQuery = mysql_query($query);
if(mysql_affected_rows()&gt;=1)
    $hasil = 1;
    else
            $hasil = 0;
include('../../config/tutup_koneksi_db.php');
?&gt;
</code></pre>

<p>The jquery coding and query inserting new row is in different file. I want to reload a div in jquery file(it's php file) if only <code>$hasil = 1;</code>, if its == 0, I'll show dialog which say "your message has not been sent"...how can i do it??please help me...>,&lt;...thx before</p>
