0

php ファイル:

if (mysql_num_rows($result) > 0) {
// output data of each row
while($row = mysql_fetch_assoc($result)) {
     $orgID=$row["InstancesID"];
    echo "description: " . $row["describtion"]. "<br><br>"." - Type: " . $row["type"]. "<br><br>". "-Amount: " . $row["amount"]. "<br><br>";
    echo"<input type='button'  onclick=SendID($orgID) value='updateee'/> <br><br>";
}

アヤックス関数:

$(document).ready(function(){
$("#show").click(function(){


    $.ajax({url: "http://127.0.0.1/testupdate.php?f=ShowAllInstances",

            success: function(result){
            //alert(result);
       $("#divshow").html(result);
    }});
});
});

これにより、返されたデータがhtmlページに表示され、jqueryモバイルページに表示したい. 助けてください

4

0 に答える 0