so I have a file that will get $_GET['id'] from an ajax request
here is a part of the php file:
include "system/dbconnect.php";
// Script Bin Plugin
$id = $_GET['id'];
$hresult = mysql_query("SELECT * FROM options
WHERE id='$id'") or die(mysql_error());
echo '<ul class="ul"> more content goes here...';
I edited the question to make it clearer: I would like to return the file's content, the html and mysql results going through a loop then rendering the widgets that contain different info from the db using ajax ...
echod by your PHP file back to the browser?