I am asking this question that how can you develop such thing with PHP+MySQL+jQuery which is done with ASP in this address (Figure 10): http://msdn.microsoft.com/en-us/magazine/dd722809.aspx#id0400013
I would like to have MySQL table data to be printed on jQuery UI Dialog popup when I click a message link in a frontpage. I can get it printing the HTML table headings and such but no MySQL table data at all.
This is how the front page works now without jQuery (it’s a bulletin board system):
$sql="SELECT *
FROM message, user
WHERE message.userID = user.userID
ORDER BY messageID DESC";
$result=mysql_query($sql);
The link in a message heading which opens up a new page:
<a href="message.php?id=<?php echo $rows['messageID']; ?>">
This is the code which is now on the “all fields” page of a message:
$id=$_GET['id'];
$sql="SELECT *
FROM message, user
WHERE message.userID = user.userID AND messageID='$id'";
$result=mysql_query($sql);`
The following is an example of how to use AJAX to load content into a jQuery Dialog
HTML
JavaScript
message.phpneeds to send the HTML you want to show in the dialog. To have inline editing this would need to be a form that submits to another PHP.