<?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/"
	>

<channel>
	<title>PHP Tutorials Code Snippets and Php Tips &#187; Extracting rows from mysql</title>
	<atom:link href="http://readytousesolutions.com/phpblog/tag/extracting-rows-from-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://readytousesolutions.com/phpblog</link>
	<description>PHP tutorials - Examples of the most useful scripts</description>
	<lastBuildDate>Thu, 02 Sep 2010 05:23:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP Tutorial : Extracting rows from mysql</title>
		<link>http://readytousesolutions.com/phpblog/php-tutorial-extracting-rows-from-mysql/</link>
		<comments>http://readytousesolutions.com/phpblog/php-tutorial-extracting-rows-from-mysql/#comments</comments>
		<pubDate>Fri, 08 May 2009 08:45:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Php & MySQL]]></category>
		<category><![CDATA[extracting rows]]></category>
		<category><![CDATA[Extracting rows from mysql]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysql extract]]></category>
		<category><![CDATA[mysql fields]]></category>
		<category><![CDATA[mysql loop]]></category>
		<category><![CDATA[mysql print]]></category>
		<category><![CDATA[mysql print rows fields]]></category>
		<category><![CDATA[mysql rows]]></category>
		<category><![CDATA[rows]]></category>

		<guid isPermaLink="false">http://www.crivionweb.com/phpblog/?p=205</guid>
		<description><![CDATA[Helllooooooo, In latest two posts I have shown you how to connect to a mysql database via PHP, and in another one I teach you how to select rows from a mysql database table. In this one I will show &#8230; <a href="http://readytousesolutions.com/phpblog/php-tutorial-extracting-rows-from-mysql/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Helllooooooo,<br />
In latest two posts I have shown you how to connect to a mysql database via PHP, and in another one I teach you how to select rows from a mysql database table. In this one I will show you how to extract that rows from mysql and print them out into a page. Let&#8217;s suppose we have a database which contains fields : id, full_name, age. Ok, next step is connecting to db, then making a query to select those fields and finally extract &amp; print them on the screen :</p>
<pre class="php">
$query_db <span class="phpOperator">=</span> <span class="phpString">"select * from table_Name"</span><span class="phpText">;</span>
$result_db <span class="phpOperator">=</span> <span class="phpFunction">mysql_query</span><span class="phpOperator">(</span>$query_db<span class="phpOperator">)</span><span class="phpText">;</span>
<span class="phpKeyword">
while<span class="phpOperator">(</span></span>$row<span class="phpOperator">=</span>@<span class="phpFunction">mysql_fetch_object</span><span class="phpOperator">(</span>$result_db<span class="phpOperator">)</span> <span class="phpOperator">{</span>
print <span class="phpString">"$row<span class="phpOperator">-<span class="phpOperator">&gt;</span></span>full_name it&#039;s $row<span class="phpOperator">-<span class="phpOperator">&gt;</span></span>age years old"</span><span class="phpText">;</span>
<span class="phpOperator">}</span>
</pre>
<p>We used a while() loop to extract all results!</p>
<p>Isn&#8217;t PHP rocking?</p>
]]></content:encoded>
			<wfw:commentRss>http://readytousesolutions.com/phpblog/php-tutorial-extracting-rows-from-mysql/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
