<?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>Linux Servers cPanel webhosting blog &#187; php script to check database connection</title>
	<atom:link href="http://www.theperfectarts.com/tag/php-script-to-check-database-connection/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Thu, 02 Sep 2010 11:15:01 +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>Simple php script to check database connection?</title>
		<link>http://www.theperfectarts.com/2009/08/simple-php-script-to-check-database-connection/</link>
		<comments>http://www.theperfectarts.com/2009/08/simple-php-script-to-check-database-connection/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 01:04:49 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[mysql script]]></category>
		<category><![CDATA[php script to check database connection]]></category>
		<category><![CDATA[script for mysql]]></category>
		<category><![CDATA[script for mysql connection]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=191</guid>
		<description><![CDATA[To check the database connection script you can use following code under your domain &#60;?php mysql_connect(&#8220;localhost&#8221;, &#8220;admin&#8221;, &#8220;1admin&#8221;) or die(mysql_error()); echo &#8220;Connected to MySQL&#60;br /&#62;&#8221;; mysql_select_db(&#8220;test&#8221;) or die(mysql_error()); echo &#8220;Connected to Database&#8221;; ?&#62; After browsing the database connection script you will see following content if database connect to your server. Connected to MySQL Connected to [...]]]></description>
			<content:encoded><![CDATA[<p>To check the database connection script you can use following code under your domain</p>
<p><span style="color: #800000;">&lt;?php<br />
mysql_connect(&#8220;localhost&#8221;, &#8220;admin&#8221;, &#8220;1admin&#8221;) or die(mysql_error());<br />
echo &#8220;Connected to MySQL&lt;br /&gt;&#8221;;<br />
mysql_select_db(&#8220;test&#8221;) or die(mysql_error());<br />
echo &#8220;Connected to Database&#8221;;<br />
?&gt;</span><br />
After browsing the database connection script you will see following content if database connect to your server.</p>
<p><span style="color: #800000;">Connected to MySQL<br />
Connected to Database</span></p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-2884138797744113"; /*  */ google_ad_slot = "0737143963"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></p>
<p>&copy;2010 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/08/simple-php-script-to-check-database-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
