<?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: How to Access a MySQL Database Using PHP</title>
	<atom:link href="http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php/feed" rel="self" type="application/rss+xml" />
	<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-access-a-mysql-database-using-php</link>
	<description></description>
	<lastBuildDate>Tue, 07 Feb 2012 15:15:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Creating a Form that will Search a MySQL Database &#124; Hitlanka</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7805</link>
		<dc:creator>Creating a Form that will Search a MySQL Database &#124; Hitlanka</dc:creator>
		<pubDate>Tue, 17 Jan 2012 08:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7805</guid>
		<description>[...] how to add a simple search box to query a MySQL database. This tutorial is a continuation of the “How to Access a MySQL Database Using PHP” tutorial. Since writing that original tutorial I have created a local WAMP test environment. I have [...]</description>
		<content:encoded><![CDATA[<p>[...] how to add a simple search box to query a MySQL database. This tutorial is a continuation of the “How to Access a MySQL Database Using PHP” tutorial. Since writing that original tutorial I have created a local WAMP test environment. I have [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wheng</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7310</link>
		<dc:creator>wheng</dc:creator>
		<pubDate>Mon, 12 Dec 2011 07:01:49 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7310</guid>
		<description>hir sir! can i ask for a help ?
..can u help me, I&#039;m looking for a PHP script, on how to display images from the directory/database i&#039;m using MYSQL database..

hope u can help me...


wheng..</description>
		<content:encoded><![CDATA[<p>hir sir! can i ask for a help ?<br />
..can u help me, I&#8217;m looking for a PHP script, on how to display images from the directory/database i&#8217;m using MYSQL database..</p>
<p>hope u can help me&#8230;</p>
<p>wheng..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Ward</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7004</link>
		<dc:creator>John Ward</dc:creator>
		<pubDate>Tue, 20 Sep 2011 12:45:13 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7004</guid>
		<description>You&#039;re user can&#039;t connect to the database. You need to make sure the user has permissions and you are using the correct password. Also be sure that you have the user enabled for local_host.</description>
		<content:encoded><![CDATA[<p>You&#8217;re user can&#8217;t connect to the database. You need to make sure the user has permissions and you are using the correct password. Also be sure that you have the user enabled for local_host.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7001</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 20 Sep 2011 03:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-7001</guid>
		<description>Once I run the test, I do see the table column field names on the return search page such as:

ID:
First Name:
Last Name:
Phone: 

but I don&#039;t get any of the actual data from the database.

I assume the coding of .$row is responsible to get this data onto the search result page.</description>
		<content:encoded><![CDATA[<p>Once I run the test, I do see the table column field names on the return search page such as:</p>
<p>ID:<br />
First Name:<br />
Last Name:<br />
Phone: </p>
<p>but I don&#8217;t get any of the actual data from the database.</p>
<p>I assume the coding of .$row is responsible to get this data onto the search result page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hasnain</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6715</link>
		<dc:creator>Hasnain</dc:creator>
		<pubDate>Wed, 20 Jul 2011 17:28:06 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6715</guid>
		<description>thank u very much i was looking for this from 2 day and very hard worked for it.
Thanksss...</description>
		<content:encoded><![CDATA[<p>thank u very much i was looking for this from 2 day and very hard worked for it.<br />
Thanksss&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: illia</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6658</link>
		<dc:creator>illia</dc:creator>
		<pubDate>Tue, 05 Jul 2011 13:44:39 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6658</guid>
		<description>I have just a blank page.
In phpMyAdmin on request - &quot;SELECT * FROM TestTable&quot; I have &quot;#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;TestTable&#039; at line 1&quot;</description>
		<content:encoded><![CDATA[<p>I have just a blank page.<br />
In phpMyAdmin on request &#8211; &#8220;SELECT * FROM TestTable&#8221; I have &#8220;#1064 &#8211; You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8216;TestTable&#8217; at line 1&#8243;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshal</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6520</link>
		<dc:creator>Marshal</dc:creator>
		<pubDate>Sun, 15 May 2011 23:19:12 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6520</guid>
		<description>My latest error after getting thru that state:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user &#039;ijsshco_assignme&#039;@&#039;localhost&#039; (using password: YES) in /home/ijsshrco/public_html/assignments.php on line 8
I cannot connect to be database because: Access denied for user &#039;ijsshco_assignme&#039;@&#039;localhost&#039; (using password: YES)</description>
		<content:encoded><![CDATA[<p>My latest error after getting thru that state:</p>
<p>Warning: mysql_connect() [function.mysql-connect]: Access denied for user &#8216;ijsshco_assignme&#8217;@'localhost&#8217; (using password: YES) in /home/ijsshrco/public_html/assignments.php on line 8<br />
I cannot connect to be database because: Access denied for user &#8216;ijsshco_assignme&#8217;@'localhost&#8217; (using password: YES)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshal</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6519</link>
		<dc:creator>Marshal</dc:creator>
		<pubDate>Sun, 15 May 2011 23:10:27 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6519</guid>
		<description>i did a few more editing but got this error:
Parse error: syntax error, unexpected $end in /home/ijsshrco/public_html/assignments.php on line 35

My php code is as follows:


Oteh&#039;s Assignments


&lt;?php
//make connection
mysql_connect (&quot;localhost&quot;,&quot;ijsshco_assignments&quot;,&quot;master123&quot;) or die (&#039;I cannot connect to be database because: &#039; . mysql_error());
mysql_select_db (&quot;ijsshco_assignments&quot;);
//build query
$query = mysql_query(&quot;select * FROM contacts&quot;);
//display results
  while ($row = mysql_fetch_array($query)){
echo //tells php to print the results to screen
&quot;ID: &quot;//html for label. Goes to new line and prints label
.$row[&#039;ID&#039;]. //selects our first row data ID and prints it
&quot; Name: &quot;//more html just tells the web browser to go the next line. Line we print the label out.
.$row[&#039;name&#039;]. //prints our name data
&quot; School: &quot; //more html another break tag and label
.$row[&#039;school&#039;]. //grabs school data from Database
&quot;Course Title: &quot; //
.$row[&#039;course_title&#039;]. //prints Course Title data
&quot;Course Code: &quot; //
.$row[&#039;course_code&#039;]. //prints Course Code Data
&quot;Registration Number: &quot; //
.$row[&#039;reg_no&#039;]. //prints Course Code Data
&quot;Email: &quot; //
.$row[&#039;email&#039;]. //prints Course Code Data
&quot;Upload: &quot; //
.$row[&#039;upload&#039;]. //prints Course Code Data
&quot;;} //final break and we close the loop.

?&gt;

</description>
		<content:encoded><![CDATA[<p>i did a few more editing but got this error:<br />
Parse error: syntax error, unexpected $end in /home/ijsshrco/public_html/assignments.php on line 35</p>
<p>My php code is as follows:</p>
<p>Oteh&#8217;s Assignments</p>
<p>&lt;?php<br />
//make connection<br />
mysql_connect (&quot;localhost&quot;,&quot;ijsshco_assignments&quot;,&quot;master123&quot;) or die (&#039;I cannot connect to be database because: &#039; . mysql_error());<br />
mysql_select_db (&quot;ijsshco_assignments&quot;);<br />
//build query<br />
$query = mysql_query(&quot;select * FROM contacts&quot;);<br />
//display results<br />
  while ($row = mysql_fetch_array($query)){<br />
echo //tells php to print the results to screen<br />
&quot;ID: &#8220;//html for label. Goes to new line and prints label<br />
.$row['ID']. //selects our first row data ID and prints it<br />
&#8221; Name: &#8220;//more html just tells the web browser to go the next line. Line we print the label out.<br />
.$row['name']. //prints our name data<br />
&#8221; School: &#8221; //more html another break tag and label<br />
.$row['school']. //grabs school data from Database<br />
&#8220;Course Title: &#8221; //<br />
.$row['course_title']. //prints Course Title data<br />
&#8220;Course Code: &#8221; //<br />
.$row['course_code']. //prints Course Code Data<br />
&#8220;Registration Number: &#8221; //<br />
.$row['reg_no']. //prints Course Code Data<br />
&#8220;Email: &#8221; //<br />
.$row['email']. //prints Course Code Data<br />
&#8220;Upload: &#8221; //<br />
.$row['upload']. //prints Course Code Data<br />
&#8220;;} //final break and we close the loop.</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marshal</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6516</link>
		<dc:creator>Marshal</dc:creator>
		<pubDate>Sat, 14 May 2011 10:26:06 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6516</guid>
		<description></description>
		<content:encoded><![CDATA[]]></content:encoded>
	</item>
	<item>
		<title>By: Marshal</title>
		<link>http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6515</link>
		<dc:creator>Marshal</dc:creator>
		<pubDate>Sat, 14 May 2011 10:23:58 +0000</pubDate>
		<guid isPermaLink="false">http://teamtutorials.com/web-development-tutorials/how-to-access-a-mysql-database-using-php#comment-6515</guid>
		<description>I am still having problem still. I have utilized the example you gave above. I have amended the password to mine but got this error after executing:
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/ijsshrco/public_html/assignments.php on line 22
I wish i could upload my program as an attachment but i’ll post it all the same:

Oteh’s Assignments

</description>
		<content:encoded><![CDATA[<p>I am still having problem still. I have utilized the example you gave above. I have amended the password to mine but got this error after executing:<br />
Parse error: syntax error, unexpected T_STRING, expecting ‘,’ or ‘;’ in /home/ijsshrco/public_html/assignments.php on line 22<br />
I wish i could upload my program as an attachment but i’ll post it all the same:</p>
<p>Oteh’s Assignments</p>
]]></content:encoded>
	</item>
</channel>
</rss>

