<?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: Editing MySQL Data Using PHP</title>
	<atom:link href="http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php</link>
	<description></description>
	<lastBuildDate>Fri, 20 Nov 2009 10:52:57 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: bestsellers book</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3647</link>
		<dc:creator>bestsellers book</dc:creator>
		<pubDate>Thu, 19 Nov 2009 20:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3647</guid>
		<description>@Dino GET variables will be displayed in the url</description>
		<content:encoded><![CDATA[<p>@Dino GET variables will be displayed in the url</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PSP Go</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3446</link>
		<dc:creator>PSP Go</dc:creator>
		<pubDate>Tue, 06 Oct 2009 16:29:50 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3446</guid>
		<description>Worked like a dream. Awesome work!</description>
		<content:encoded><![CDATA[<p>Worked like a dream. Awesome work!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PSP Go</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3445</link>
		<dc:creator>PSP Go</dc:creator>
		<pubDate>Tue, 06 Oct 2009 16:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3445</guid>
		<description>Worked like a dream. Once again a great tutorial.</description>
		<content:encoded><![CDATA[<p>Worked like a dream. Once again a great tutorial.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3351</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Mon, 21 Sep 2009 01:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3351</guid>
		<description>OK, so this is the deal. I have a &quot;Guestbook&quot; type deal, but it is for a few select Admins of my organization. This is where we update changes and what not. There is like 8 fields and I am needing to make this so you can change things like &quot;Info Given&quot; - &quot;Status&quot; and -&quot;Topic&quot; where Topic is a Drop down menu and Status is a option field with 3 options. I can get the script to pull the data from the database per the ID if I put 
$sql = &quot;select * from `post` where id = 84&quot;; 

But I am unable to make this the id &quot;Dynamic&quot; so to be able to change and pull that tables field for that ID. However even pulling a static table, when I submit the change, it does not take. I get no errors or anything of the such. 

Is there anyway I can get some more guidance on this? Thanks a lot.</description>
		<content:encoded><![CDATA[<p>OK, so this is the deal. I have a &#8220;Guestbook&#8221; type deal, but it is for a few select Admins of my organization. This is where we update changes and what not. There is like 8 fields and I am needing to make this so you can change things like &#8220;Info Given&#8221; &#8211; &#8220;Status&#8221; and -&#8221;Topic&#8221; where Topic is a Drop down menu and Status is a option field with 3 options. I can get the script to pull the data from the database per the ID if I put<br />
$sql = &#8220;select * from `post` where id = 84&#8243;; </p>
<p>But I am unable to make this the id &#8220;Dynamic&#8221; so to be able to change and pull that tables field for that ID. However even pulling a static table, when I submit the change, it does not take. I get no errors or anything of the such. </p>
<p>Is there anyway I can get some more guidance on this? Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homemade hand jobs</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3289</link>
		<dc:creator>Homemade hand jobs</dc:creator>
		<pubDate>Tue, 08 Sep 2009 14:41:44 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3289</guid>
		<description>To change the location of MySQL data storage you will need to specify the datadir in the MySQL configuration file (my.ini) and restart the server.</description>
		<content:encoded><![CDATA[<p>To change the location of MySQL data storage you will need to specify the datadir in the MySQL configuration file (my.ini) and restart the server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Buy PSP Go</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3109</link>
		<dc:creator>Buy PSP Go</dc:creator>
		<pubDate>Sun, 19 Jul 2009 18:07:14 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3109</guid>
		<description>Thanks for this, I&#039;m going to combine this with your PHP CSV parser to try and create a WP plugin which can import my Affiliate data feeds.</description>
		<content:encoded><![CDATA[<p>Thanks for this, I&#8217;m going to combine this with your PHP CSV parser to try and create a WP plugin which can import my Affiliate data feeds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edwin</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3092</link>
		<dc:creator>edwin</dc:creator>
		<pubDate>Sun, 12 Jul 2009 22:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3092</guid>
		<description>Dino
I&#039;ll set something up but make sure you read the comment I left on my blog for you</description>
		<content:encoded><![CDATA[<p>Dino<br />
I&#8217;ll set something up but make sure you read the comment I left on my blog for you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rama krishna</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3088</link>
		<dc:creator>rama krishna</dc:creator>
		<pubDate>Fri, 10 Jul 2009 07:29:06 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3088</guid>
		<description>using ur code i have used in my aplication , i am geting information from dbase into edit form but when i am updating its not affecting the dbase below is my editinfo.php and updateinfo.php .
see and tell my mistake 
editinfo.php

&lt;?php

//replace usernaem,password, and yourdb with the information for your database
//mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;) or die(&quot;Error: &quot;.mysqlerror());
//mysql_select_db(&quot;shopperlists7&quot;);

//replace TestTable with the name of your table
//also in a real app you would get the id dynamically
//*******************************starts here **************************
//Database Information

$dbhost = &quot;localhost&quot;;
$dbname = &quot;shopperlists7&quot;;
$dbuser = &quot;root&quot;;
$dbpass = &quot;&quot;;

//Connect to database

mysql_connect ( $dbhost, $dbuser, $dbpass)or die(&quot;Could not connect: &quot;.mysql_error());
mysql_select_db($dbname) or die(mysql_error());

session_start();
$username = $_POST[&#039;name&#039;];
$password = md5($_POST[&#039;password&#039;]);

$query = &quot;select name, email, vendorID , contact from vendors where name=&#039;$username&#039; and password=&#039;$password&#039;&quot;;

$result = mysql_query($query);
if (mysql_num_rows($result) != 1)
 {
  $error = &quot;Bad Login&quot;;
  echo &quot;user doesnot exists&quot;;
      include &quot;vendorlogin.php&quot;;

 }
else
 {
    $_SESSION[&#039;name&#039;] = &quot;$username&quot;;
//$sql = &quot;select * from `vendors` where VendorID = 1&quot;;
//$query = mysql_query($sql);

         while ($row = mysql_fetch_array($result))
         {

         $vendorID = $row[&#039;vendorID&#039;];
         $name = $row[&#039;name&#039;];
         $email = $row[&#039;email&#039;];
         $contact = $row[&#039;contact&#039;];

          //we will echo these into the proper fields

          }
  }
mysql_free_result($result);
?&gt;



Edit User Info






userid:
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;vendorID&quot; disabled/&gt;



Organisation :
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;name&quot;/&gt;



Email :
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;email&quot;/&gt;



Contacts :
&lt;input type=&quot;text&quot; value=&quot;&quot; name=&quot;contact&quot;/&gt;









**************************

here updateinfo.php


&lt;?php
//replace usernaem,password, and yourdb with the information for your database
mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;) or die(&quot;Error: &quot;.mysqlerror());
mysql_select_db(&quot;shopperlists7&quot;);

//get the variables we transmitted from the form
$vendorID = $_POST[&#039;vendorID&#039;];
$name = $_POST[&#039;name&#039;];
$email = $_POST[&#039;email&#039;];
$contact = $_POST[&#039;contact&#039;];

//replace TestTable with the name of your table
$sql = &quot;UPDATE &#039;vendors&#039; SET &#039;name&#039; = &#039;$name&#039;,&#039;email&#039; = &#039;$email&#039;,&#039;contact&#039; = &#039;$contact&#039; WHERE &#039;vendors&#039;.&#039;vendorID&#039; = &#039;$vendorID&#039; LIMIT 1&quot;;

mysql_query($sql) or die (&quot;Error: &quot;.mysql_error());

echo &quot;Database updated. &lt;a&gt;Return to edit info&lt;/a&gt;&quot;;
?&gt;</description>
		<content:encoded><![CDATA[<p>using ur code i have used in my aplication , i am geting information from dbase into edit form but when i am updating its not affecting the dbase below is my editinfo.php and updateinfo.php .<br />
see and tell my mistake<br />
editinfo.php</p>
<p>&lt;?php</p>
<p>//replace usernaem,password, and yourdb with the information for your database<br />
//mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;) or die(&quot;Error: &quot;.mysqlerror());<br />
//mysql_select_db(&quot;shopperlists7&quot;);</p>
<p>//replace TestTable with the name of your table<br />
//also in a real app you would get the id dynamically<br />
//*******************************starts here **************************<br />
//Database Information</p>
<p>$dbhost = &quot;localhost&quot;;<br />
$dbname = &quot;shopperlists7&quot;;<br />
$dbuser = &quot;root&quot;;<br />
$dbpass = &quot;&quot;;</p>
<p>//Connect to database</p>
<p>mysql_connect ( $dbhost, $dbuser, $dbpass)or die(&quot;Could not connect: &quot;.mysql_error());<br />
mysql_select_db($dbname) or die(mysql_error());</p>
<p>session_start();<br />
$username = $_POST[&#039;name&#039;];<br />
$password = md5($_POST[&#039;password&#039;]);</p>
<p>$query = &quot;select name, email, vendorID , contact from vendors where name=&#039;$username&#039; and password=&#039;$password&#039;&quot;;</p>
<p>$result = mysql_query($query);<br />
if (mysql_num_rows($result) != 1)<br />
 {<br />
  $error = &quot;Bad Login&quot;;<br />
  echo &quot;user doesnot exists&#8221;;<br />
      include &#8220;vendorlogin.php&#8221;;</p>
<p> }<br />
else<br />
 {<br />
    $_SESSION['name'] = &#8220;$username&#8221;;<br />
//$sql = &#8220;select * from `vendors` where VendorID = 1&#8243;;<br />
//$query = mysql_query($sql);</p>
<p>         while ($row = mysql_fetch_array($result))<br />
         {</p>
<p>         $vendorID = $row['vendorID'];<br />
         $name = $row['name'];<br />
         $email = $row['email'];<br />
         $contact = $row['contact'];</p>
<p>          //we will echo these into the proper fields</p>
<p>          }<br />
  }<br />
mysql_free_result($result);<br />
?&gt;</p>
<p>Edit User Info</p>
<p>userid:<br />
&lt;input type=&quot;text&quot; value=&quot;&#8221; name=&#8221;vendorID&#8221; disabled/&gt;</p>
<p>Organisation :<br />
&lt;input type=&quot;text&quot; value=&quot;&#8221; name=&#8221;name&#8221;/&gt;</p>
<p>Email :<br />
&lt;input type=&quot;text&quot; value=&quot;&#8221; name=&#8221;email&#8221;/&gt;</p>
<p>Contacts :<br />
&lt;input type=&quot;text&quot; value=&quot;&#8221; name=&#8221;contact&#8221;/&gt;</p>
<p>**************************</p>
<p>here updateinfo.php</p>
<p>&lt;?php<br />
//replace usernaem,password, and yourdb with the information for your database<br />
mysql_connect(&quot;localhost&quot;,&quot;root&quot;,&quot;&quot;) or die(&quot;Error: &quot;.mysqlerror());<br />
mysql_select_db(&quot;shopperlists7&quot;);</p>
<p>//get the variables we transmitted from the form<br />
$vendorID = $_POST[&#039;vendorID&#039;];<br />
$name = $_POST[&#039;name&#039;];<br />
$email = $_POST[&#039;email&#039;];<br />
$contact = $_POST[&#039;contact&#039;];</p>
<p>//replace TestTable with the name of your table<br />
$sql = &quot;UPDATE &#039;vendors&#039; SET &#039;name&#039; = &#039;$name&#039;,&#039;email&#039; = &#039;$email&#039;,&#039;contact&#039; = &#039;$contact&#039; WHERE &#039;vendors&#039;.&#039;vendorID&#039; = &#039;$vendorID&#039; LIMIT 1&quot;;</p>
<p>mysql_query($sql) or die (&quot;Error: &quot;.mysql_error());</p>
<p>echo &quot;Database updated. <a>Return to edit info</a>&#8220;;<br />
?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dino</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3073</link>
		<dc:creator>Dino</dc:creator>
		<pubDate>Sun, 05 Jul 2009 12:49:07 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3073</guid>
		<description>the server is localhost so no. Umm I dunno how to get u the code, can I post it somehow on your blog, can you allow that?</description>
		<content:encoded><![CDATA[<p>the server is localhost so no. Umm I dunno how to get u the code, can I post it somehow on your blog, can you allow that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: edwin</title>
		<link>http://teamtutorials.com/web-development-tutorials/editing-mysql-data-using-php/comment-page-1#comment-3072</link>
		<dc:creator>edwin</dc:creator>
		<pubDate>Sun, 05 Jul 2009 12:44:33 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/?p=1795#comment-3072</guid>
		<description>I am going to need your full code. as neither of us likes to post their email address, would you know of a way to get it to me? can I download it from your server?</description>
		<content:encoded><![CDATA[<p>I am going to need your full code. as neither of us likes to post their email address, would you know of a way to get it to me? can I download it from your server?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
