I just need Jquery, Ajax to return two values from db
Hey all
I have a php form which contains:
-
<input type="button" value="SearchDB" id="generate" name="generate" >
<script type="text/JavaScript">
$(document).ready(function(){
$("#generate").click(function(){
$("#img_desc").load("searchdb_qry.php);
});
});
</script>
The code in searchdb_qry.php currently echos a string and this works fine and displays the string in the div.
However I need to query my db and return
two values (xml) - I can't seem to figure this out and as ever I'm running out of time.
please help!
cheers