Hello…
Thanks for your help in advance.
I trying to create a script with two form one to (accept) and the other to (deny) in a while loop and to used jquery to to process it. It work fine but only one of the used the jquery fuction. So don’t know how to get all the result to use the jquery function… I can used any help…
The following is the script i’m using.
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
<?php include "connect to mysql"; $sql=("SELECT * FROM linkUP_request WHERE linkUP_sender='$linkUP_sender' ORDER BY id ASC LIMIT 5"); $query=mysql_query($sql)or die ("error 1 Sorry we have a mysql error!"); $num_rows=mysql_num_rows($query); $linkUP_status = $num_rows["linkUP_status"]; if($linkUP_status>1){ echo 'You have no linkUP request!'; }else{ while($row=mysql_fetch_array($query)){ $senderID=$row["id"]; $linkUP_As = $rows["linkUP_As"]; $linkUP_reciever=$row["linkUP_reciever"]; $sqlName=mysql_query("SELECT * FROM prociallinkup_members WHERE email='$linkUP_reciever' LIMIT 1")or die ("Sorry we have a mysql error!"); while($row=mysql_fetch_array($sqlName)){$recieverAccount=$row["accountType"];$recieverID=$row["hdw_id"];$recieverfistName=$row["firstName"];$recieverlastName=$row["lastName"];$reciever_pic=$row["profile_pic"];$gender=$row["gender"];} $gender=''.$gender.''; $profile_pic='members/'.$recieverAccount.'/'.$recieverID.'_'.$recieverfistName.'/'.$reciever_pic.''; if(file_exists($profile_pic)){ $profile_pic_lil=''; }else if($gender==male){ $profile_pic_lil=''; }else{ $profile_pic_lil=''; } echo ''.$profile_pic_lil.' |
'.$recieverfistName.' '.$recieverlastName.'
Want to linkUP with you as a '.$linkUP_As.'!
|
|
|
<script type="text/javascript" src="/jquery.js"></script>
<script type="text/javascript" src="/jquery.form.js"></script>
<script type="text/javascript" src="/jquery.validate.js"></script>
<script type="text/javascript">
$(‘document’).ready(function()
{
$(’#acceptForm’).ajaxForm( {
target: ‘#memberslinkup’,
success: function() {
$(’#requestlinkUP_accept’).slideUp(‘fast’);
$(’#requestlinkUP_burn’).slideUp(‘fast’);
$(’#requestlinkUP_text’).slideUp(‘fast’);
}
});
});