'; echo '$(document).ready(function() {'; while($row = mysql_fetch_array($result)) { echo '$("#data").append("' . $row['display_title'] . '
");'; } echo '});'; echo ''; mysql_close($con); ?> Go

Data