<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mitchi Resource</title>
	<atom:link href="http://mitchi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mitchi.wordpress.com</link>
	<description>Philippine Open Source College</description>
	<lastBuildDate>Fri, 11 Jan 2008 11:28:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mitchi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mitchi Resource</title>
		<link>http://mitchi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mitchi.wordpress.com/osd.xml" title="Mitchi Resource" />
	<atom:link rel='hub' href='http://mitchi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Applet</title>
		<link>http://mitchi.wordpress.com/2008/01/11/applet/</link>
		<comments>http://mitchi.wordpress.com/2008/01/11/applet/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 11:27:07 +0000</pubDate>
		<dc:creator>Mitchi</dc:creator>
				<category><![CDATA[Comp02]]></category>

		<guid isPermaLink="false">http://mitchi.wordpress.com/2008/01/11/applet/</guid>
		<description><![CDATA[// Fig. 3.8: WelcomeApplet2.java // Displaying multiple strings in an applet. // Java core packages import java.awt.Graphics;    // import class Graphics // Java extension packages import javax.swing.JApplet;  // import class JApplet public class WelcomeApplet2 extends JApplet { // draw text on applet’s background public void paint( Graphics g ) { // call inherited version of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=45&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>// Fig. 3.8: WelcomeApplet2.java<br />
// Displaying multiple strings in an applet.<br />
// Java core packages<br />
import java.awt.Graphics;    // import class Graphics<br />
// Java extension packages<br />
import javax.swing.JApplet;  // import class JApplet<br />
public class WelcomeApplet2 extends JApplet {<br />
// draw text on applet’s background<br />
public void paint( Graphics g )<br />
{<br />
// call inherited version of method paint<br />
super.paint( g );<br />
// draw two Strings at different locations<br />
g.drawString( &#8220;Welcome to&#8221;, 25, 25 );<br />
g.drawString( &#8220;Java Programming!&#8221;, 25, 40 );<br />
}  // end method paint<br />
}  // end class WelcomeApplet2</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mitchi.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mitchi.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchi.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchi.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchi.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=45&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mitchi.wordpress.com/2008/01/11/applet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2284a9c156496891c2f5a9079545f451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Mitchi</media:title>
		</media:content>
	</item>
		<item>
		<title>Dropdown Box</title>
		<link>http://mitchi.wordpress.com/2008/01/10/dropdown-box/</link>
		<comments>http://mitchi.wordpress.com/2008/01/10/dropdown-box/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 07:43:57 +0000</pubDate>
		<dc:creator>Mitchi</dc:creator>
				<category><![CDATA[Comp02]]></category>

		<guid isPermaLink="false">http://mitchi.wordpress.com/2008/01/10/dropdown-box/</guid>
		<description><![CDATA[import javax.swing.JDialog; import javax.swing.JOptionPane; public class JOptionPaneTest3 { public static void main(String[] args) { JDialog.setDefaultLookAndFeelDecorated(true); Object[] selectionValues = { &#8220;Pandas&#8221;, &#8220;Dogs&#8221;, &#8220;Horses&#8221; }; String initialSelection = &#8220;Dogs&#8221;; Object selection = JOptionPane.showInputDialog(null, &#8220;What are your favorite animals?&#8221;, &#8220;Zoo Quiz&#8221;, JOptionPane.QUESTION_MESSAGE, null, selectionValues, initialSelection); System.out.println(selection); } }<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=44&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>import javax.swing.JDialog;<br />
import javax.swing.JOptionPane;</p>
<p>public class JOptionPaneTest3 {<br />
public static void main(String[] args) {<br />
JDialog.setDefaultLookAndFeelDecorated(true);<br />
Object[] selectionValues = { &#8220;Pandas&#8221;, &#8220;Dogs&#8221;, &#8220;Horses&#8221; };<br />
String initialSelection = &#8220;Dogs&#8221;;<br />
Object selection = JOptionPane.showInputDialog(null, &#8220;What are your favorite animals?&#8221;,<br />
&#8220;Zoo Quiz&#8221;, JOptionPane.QUESTION_MESSAGE, null, selectionValues, initialSelection);<br />
System.out.println(selection);<br />
}<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mitchi.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mitchi.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchi.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchi.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchi.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=44&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mitchi.wordpress.com/2008/01/10/dropdown-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2284a9c156496891c2f5a9079545f451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Mitchi</media:title>
		</media:content>
	</item>
		<item>
		<title>POLL</title>
		<link>http://mitchi.wordpress.com/2008/01/10/poll/</link>
		<comments>http://mitchi.wordpress.com/2008/01/10/poll/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 07:43:35 +0000</pubDate>
		<dc:creator>Mitchi</dc:creator>
				<category><![CDATA[Comp02]]></category>

		<guid isPermaLink="false">http://mitchi.wordpress.com/2008/01/10/poll/</guid>
		<description><![CDATA[import javax.swing.JOptionPane; public class JOptionPaneTest2 { public static void main(String[] args) { //&#8230; Text to put on the buttons. String[] choices = {&#8220;Democratic&#8221;, &#8220;Republican&#8221;, &#8220;None of your business&#8221;, &#8220;Quit&#8221;}; //&#8230; Variables to keep track of the counts. int democraticCount = 0; int republicanCount = 0; int noAnswerCount = 0; //&#8230; &#8220;Infinite&#8221; loop, terminated by call [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=43&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>import javax.swing.JOptionPane;</p>
<p>public class JOptionPaneTest2 {<br />
public static void main(String[] args) {<br />
//&#8230; Text to put on the buttons.<br />
String[] choices = {&#8220;Democratic&#8221;, &#8220;Republican&#8221;, &#8220;None of your business&#8221;, &#8220;Quit&#8221;};</p>
<p>//&#8230; Variables to keep track of the counts.<br />
int democraticCount = 0;<br />
int republicanCount = 0;<br />
int noAnswerCount   = 0;</p>
<p>//&#8230; &#8220;Infinite&#8221; loop, terminated by call to System.exit(0)<br />
while (true) {<br />
int response = JOptionPane.showOptionDialog(<br />
null                       // Center in window.<br />
, &#8220;How did you vote?&#8221;        // Message<br />
, &#8220;Party Poll&#8221;               // Title in titlebar<br />
, JOptionPane.YES_NO_OPTION  // Option type<br />
, JOptionPane.PLAIN_MESSAGE  // messageType<br />
, null                       // Icon (none)<br />
, choices                    // Button text as above.<br />
, &#8220;None of your business&#8221;    // Default button&#8217;s label<br />
);</p>
<p>//&#8230; Use a switch statement to check which button was clicked.<br />
switch (response) {<br />
case 0:<br />
democraticCount++;<br />
break;<br />
case 1:<br />
republicanCount++;<br />
break;<br />
case 2:<br />
noAnswerCount++;<br />
break;<br />
case 3:<br />
case -1:<br />
//&#8230; Both the quit button (3) and the close box(-1) handled here.<br />
System.exit(0);     // It would be better to exit loop, but&#8230;<br />
default:<br />
//&#8230; If we get here, something is wrong.  Defensive programming.<br />
JOptionPane.showMessageDialog(null, &#8220;Unexpected response &#8221; + response);<br />
}</p>
<p>//&#8230; Display the accumulated results so far.<br />
JOptionPane.showMessageDialog(null, &#8220;Response = &#8221; + response<br />
+ &#8220;\nDem = &#8221; + democraticCount<br />
+ &#8220;\nRep = &#8221; + republicanCount<br />
+ &#8220;\nOther = &#8221; + noAnswerCount);<br />
}<br />
}<br />
}</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mitchi.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mitchi.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchi.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchi.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchi.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=43&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mitchi.wordpress.com/2008/01/10/poll/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2284a9c156496891c2f5a9079545f451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Mitchi</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP MySQL Delete</title>
		<link>http://mitchi.wordpress.com/2008/01/07/php-mysql-delete/</link>
		<comments>http://mitchi.wordpress.com/2008/01/07/php-mysql-delete/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 07:40:57 +0000</pubDate>
		<dc:creator>Mitchi</dc:creator>
				<category><![CDATA[DB02]]></category>

		<guid isPermaLink="false">http://mitchi.wordpress.com/2008/01/07/php-mysql-delete/</guid>
		<description><![CDATA[Delete Data In a Database The DELETE FROM statement is used to delete records from a database table. Syntax &#60; DELETE FROM table_name WHERE column_name = some_value Note: SQL statements are not case sensitive. DELETE FROM is the same as delete from.To get PHP to execute the statement above we must use the mysql_query() function. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=42&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Delete Data In a Database</h2>
<p>The DELETE FROM statement is used to delete records from a database table.</p>
<h3>Syntax</h3>
<p>&lt;</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<td>
<pre>DELETE FROM table_name
WHERE column_name = some_value</pre>
</td>
</tr>
</table>
<p><b>Note:</b> SQL statements are not case  sensitive. DELETE FROM is the same as delete from.To get PHP to execute the statement above we must use the mysql_query() function. This function is used to  send a query or command to a MySQL connection.</p>
<h3>Example</h3>
<p>Earlier in the tutorial we created a table named &#8220;Person&#8221;.  Here is how it looks:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<th align="left">FirstName</th>
<th align="left">LastName</th>
<th align="left">Age</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>35</td>
</tr>
<tr>
<td>Glenn</td>
<td>Quagmire</td>
<td>33</td>
</tr>
</table>
<p>The following example deletes all the records in the &#8220;Person&#8221; table  where LastName=&#8217;Griffin&#8217;:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<td>
<pre>&lt;?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }</pre>
<pre>mysql_select_db("my_db", $con);

mysql_query("DELETE FROM Person WHERE LastName='Griffin'");</pre>
<pre>mysql_close($con);
?&gt;</pre>
</td>
</tr>
</table>
<p>After the deletion, the table will look like this:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<th align="left">FirstName</th>
<th align="left">LastName</th>
<th align="left">Age</th>
</tr>
<tr>
<td>Glenn</td>
<td>Quagmire</td>
<td>33</td>
</tr>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mitchi.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mitchi.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchi.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchi.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchi.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=42&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mitchi.wordpress.com/2008/01/07/php-mysql-delete/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2284a9c156496891c2f5a9079545f451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Mitchi</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP MySQL Update</title>
		<link>http://mitchi.wordpress.com/2008/01/07/php-mysql-update/</link>
		<comments>http://mitchi.wordpress.com/2008/01/07/php-mysql-update/#comments</comments>
		<pubDate>Mon, 07 Jan 2008 07:40:34 +0000</pubDate>
		<dc:creator>Mitchi</dc:creator>
				<category><![CDATA[DB02]]></category>

		<guid isPermaLink="false">http://mitchi.wordpress.com/2008/01/07/php-mysql-update/</guid>
		<description><![CDATA[Update Data In a Database The UPDATE statement is used to modify data in a database table. Syntax UPDATE table_name SET column_name = new_value WHERE column_name = some_value Note: SQL statements are not case sensitive. UPDATE is the same as update.To get PHP to execute the statement above we must use the mysql_query() function. This [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=41&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>Update Data In a Database</h2>
<p>The UPDATE statement is used to modify data in a database table.</p>
<h3>Syntax</h3>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<td>
<pre>UPDATE table_name
SET column_name = new_value
WHERE column_name = some_value</pre>
</td>
</tr>
</table>
<p><b>Note:</b> SQL statements are not case  sensitive. UPDATE is the same as update.To get PHP to execute the statement above we must use the mysql_query() function. This function is used to  send a query or command to a MySQL connection.</p>
<h3>Example</h3>
<p>Earlier in the tutorial we created a table named &#8220;Person&#8221;. Here is how it  looks:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<th align="left">FirstName</th>
<th align="left">LastName</th>
<th align="left">Age</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>35</td>
</tr>
<tr>
<td>Glenn</td>
<td>Quagmire</td>
<td>33</td>
</tr>
</table>
<p>The following example updates some data in the &#8220;Person&#8221; table:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<td>
<pre>&lt;?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }</pre>
<pre>mysql_select_db("my_db", $con);

mysql_query("UPDATE Person SET Age = '36'
WHERE FirstName = 'Peter' AND LastName = 'Griffin'");</pre>
<pre>mysql_close($con);
?&gt;</pre>
</td>
</tr>
</table>
<p>After the update, the &#8220;Person&#8221; table will look like this:</p>
<table class="ex" border="1" cellspacing="0" width="100%">
<tr>
<th align="left">FirstName</th>
<th align="left">LastName</th>
<th align="left">Age</th>
</tr>
<tr>
<td>Peter</td>
<td>Griffin</td>
<td>36</td>
</tr>
<tr>
<td>Glenn</td>
<td>Quagmire</td>
<td>33</td>
</tr>
</table>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/mitchi.wordpress.com/41/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/mitchi.wordpress.com/41/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mitchi.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mitchi.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mitchi.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mitchi.wordpress.com&amp;blog=1665086&amp;post=41&amp;subd=mitchi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mitchi.wordpress.com/2008/01/07/php-mysql-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2284a9c156496891c2f5a9079545f451?s=96&#38;d=identicon" medium="image">
			<media:title type="html">Mitchi</media:title>
		</media:content>
	</item>
	</channel>
</rss>
