<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Edit MySQL database tables with PHP and AJAX</title>
	<atom:link href="http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/</link>
	<description>A web, games, technology, programming and SEO blog by Justin Cook</description>
	<lastBuildDate>Wed, 04 Jan 2012 07:53:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: handbag</title>
		<link>http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/comment-page-1/#comment-157177</link>
		<dc:creator>handbag</dc:creator>
		<pubDate>Mon, 21 Feb 2011 07:27:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/#comment-157177</guid>
		<description>how to show field database but the namae is link and if i click link name will go to edit form?</description>
		<content:encoded><![CDATA[<p>how to show field database but the namae is link and if i click link name will go to edit form?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zahid khan</title>
		<link>http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/comment-page-1/#comment-157117</link>
		<dc:creator>zahid khan</dc:creator>
		<pubDate>Thu, 20 Jan 2011 14:25:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/#comment-157117</guid>
		<description>Hello james apply this code for deleting record after this you can do everything using this code just u have knowledge about jquery and ajax


delete_random.php
Contains PHP code displaying records from database. Take a look at class=&quot;delete_button&quot;




&lt;a href=&quot;#&quot; id=&quot;&quot; class=&quot;delete_button&quot;&gt;X&lt;/a&gt;








jQuery code
Contains javascipt code. $(&quot;.delete_button&quot;).click(function(){}- delete_button is the class name of anchor tag (X). Using element.attr(&quot;id&quot;) calling delete button value. If id value is even number if(id(even) % 2) = If(0) false


$(function() {
$(&quot;.delete_button&quot;).click(function() {
var id = $(this).attr(&quot;id&quot;);
var dataString = &#039;id=&#039;+ id ;
var parent = $(this).parent();

$.ajax({
type: &quot;POST&quot;,
url: &quot;deleteajax.php&quot;,
data: dataString,
cache: false,

success: function()
{
if(id % 2)
{
parent.fadeOut(&#039;slow&#039;, function() {$(this).remove();});
}
else
{
parent.slideUp(&#039;slow&#039;, function() {$(this).remove();});
}
}
});

return false;
});
});




deleteajax.php
Contains PHP code. Delete record from the database.




CSS Code
*{margin:0;padding:0;}
ol.update
{
list-style:none;font-size:1.2em;
}
ol.update li
{
height:50px; border-bottom:#dedede dashed 1px;
}
ol.update li:first-child
{
border-top:#dedede dashed 1px; height:50px;
}
#main
{
width:500px; margin-top:20px; margin-left:100px;
font-family:&quot;Trebuchet MS&quot;;
}
.delete_button
{
margin-left:10px;
font-weight:bold;
float:right;
}</description>
		<content:encoded><![CDATA[<p>Hello james apply this code for deleting record after this you can do everything using this code just u have knowledge about jquery and ajax</p>
<p>delete_random.php<br />
Contains PHP code displaying records from database. Take a look at class=&#034;delete_button&#034;</p>
<p>&lt;a href=&quot;#&quot; id=&quot;&#034; class=&#034;delete_button&#034;&gt;X</p>
<p>jQuery code<br />
Contains javascipt code. $(&#034;.delete_button&#034;).click(function(){}- delete_button is the class name of anchor tag (X). Using element.attr(&#034;id&#034;) calling delete button value. If id value is even number if(id(even) % 2) = If(0) false</p>
<p>$(function() {<br />
$(&#034;.delete_button&#034;).click(function() {<br />
var id = $(this).attr(&#034;id&#034;);<br />
var dataString = &#039;id=&#039;+ id ;<br />
var parent = $(this).parent();</p>
<p>$.ajax({<br />
type: &#034;POST&#034;,<br />
url: &#034;deleteajax.php&#034;,<br />
data: dataString,<br />
cache: false,</p>
<p>success: function()<br />
{<br />
if(id % 2)<br />
{<br />
parent.fadeOut(&#039;slow&#039;, function() {$(this).remove();});<br />
}<br />
else<br />
{<br />
parent.slideUp(&#039;slow&#039;, function() {$(this).remove();});<br />
}<br />
}<br />
});</p>
<p>return false;<br />
});<br />
});</p>
<p>deleteajax.php<br />
Contains PHP code. Delete record from the database.</p>
<p>CSS Code<br />
*{margin:0;padding:0;}<br />
ol.update<br />
{<br />
list-style:none;font-size:1.2em;<br />
}<br />
ol.update li<br />
{<br />
height:50px; border-bottom:#dedede dashed 1px;<br />
}<br />
ol.update li:first-child<br />
{<br />
border-top:#dedede dashed 1px; height:50px;<br />
}<br />
#main<br />
{<br />
width:500px; margin-top:20px; margin-left:100px;<br />
font-family:&#034;Trebuchet MS&#034;;<br />
}<br />
.delete_button<br />
{<br />
margin-left:10px;<br />
font-weight:bold;<br />
float:right;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SMS Messaging</title>
		<link>http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/comment-page-1/#comment-156987</link>
		<dc:creator>SMS Messaging</dc:creator>
		<pubDate>Fri, 01 Oct 2010 20:32:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.justin-cook.com/wp/2007/06/26/edit-mysql-database-tables-with-php-and-ajax/#comment-156987</guid>
		<description>I think if someone makes a simple and easy application for adding, updating, and deleting database record entries, that can easily be implemented to any webpage they will make lots of people very happy.</description>
		<content:encoded><![CDATA[<p>I think if someone makes a simple and easy application for adding, updating, and deleting database record entries, that can easily be implemented to any webpage they will make lots of people very happy.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
