<?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>ACCES INTERZIS &#187; cod-sursa</title>
	<atom:link href="http://www.accesinterzis.ro/index.php/tag/cod-sursa/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.accesinterzis.ro</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Thu, 14 Oct 2010 01:05:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Cum ma conectez la o baza de date?</title>
		<link>http://www.accesinterzis.ro/index.php/programare/cum-ma-conectez-la-o-baza-de-date/</link>
		<comments>http://www.accesinterzis.ro/index.php/programare/cum-ma-conectez-la-o-baza-de-date/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:32:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[programare]]></category>
		<category><![CDATA[cod-sursa]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.accesinterzis.ro/?p=4</guid>
		<description><![CDATA[Scriptul PHP de mai jos iti permite sa te conectezi la o baza de date MySQL.

&#60;?php
define('SQL_HOST', 'localhost');
define('SQL_USER', 'username');
define('SQL_PASS', 'password');
define('SQL_DB', 'database name');

@mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Nu ma pot conecta la serverul MySQL!');
@mysql_select_db(SQL_DB) or die('Nu ma pot conecta la baza de date!');
?&#62;

De obicei, acest script este un fisier include care este apelat, de cele mai multe ori [...]


<strong>Niciun articol asemanator.</strong>]]></description>
			<content:encoded><![CDATA[<p>Scriptul PHP de mai jos iti permite sa te conectezi la o baza de date MySQL.</p>
<pre class="brush: php;">
&lt;?php
define('SQL_HOST', 'localhost');
define('SQL_USER', 'username');
define('SQL_PASS', 'password');
define('SQL_DB', 'database name');

@mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Nu ma pot conecta la serverul MySQL!');
@mysql_select_db(SQL_DB) or die('Nu ma pot conecta la baza de date!');
?&gt;
</pre>
<p>De obicei, acest script este un fisier include care este apelat, de cele mai multe ori deasupra DOCTYPE-ului, de fiecare data cand o pagina web trebuie sa se coneteze la o baza de date.</p>
<pre class="brush: php;">
&lt;?php include(&quot;includes/connect_to_db.inc.php&quot;); ?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
</pre>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Cum+ma+conectez+la+o+baza+de+date%3F+http://kd4ca.th8.us" title="Publica acest articol pe Twitter"><img class="nothumb" src="http://www.accesinterzis.ro/wp-content/plugins/tweet-this/icons/tt-twitter.png" alt="Post to Twitter" /></a> <a class="tt" href="http://twitter.com/home/?status=Cum+ma+conectez+la+o+baza+de+date%3F+http://kd4ca.th8.us" title="Publica acest articol pe Twitter">Publica acest articol pe Twitter</a></p>

<p><strong>Niciun articol asemanator.</strong></p>]]></content:encoded>
			<wfw:commentRss>http://www.accesinterzis.ro/index.php/programare/cum-ma-conectez-la-o-baza-de-date/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

