9Mar/1224
How to Connect MySQL DB on PHP
<?php
// Database Constants
// Checks whether a given named constant exists if null then it define the given constant variable.
defined('DB_SERVER') ? null : define("DB_SERVER", "localhost");
defined('DB_USER') ? null : define("DB_USER", "root");
defined('DB_PASS') ? null : define("DB_PASS", "password");
defined('DB_NAME') ? null : define("DB_NAME", "my_db");
$connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS);
if (!$connection) {
die("Database connection failed: " . mysql_error());
} else {
$db_select = mysql_select_db(DB_NAME, $this->connection);
if (!$db_select) {
die("Database selection failed: " . mysql_error());
}
}
}
?>
May 22nd, 2012 - 20:39
thanks for sharing such wonderful information…keep posting more such articles…http://www.listasegmentada.com
May 24th, 2012 - 16:42
i am following your blog regularly and got great information. i really like the tips you have given. thanks a lot for sharing. will be referring a lot of friends about this.http://www.kitsucesso.com
May 24th, 2012 - 20:37
this is an amazing article, thanks.http://www.divulgaemail.com
June 6th, 2012 - 05:58
Well I sincerely enjoyed studying it. This subject offered by you is very useful for accurate planning.
June 15th, 2012 - 13:16
Graças amigo.
___________________________________________
http://www.maladiretasegmentada.com.br
June 16th, 2012 - 17:54
good you’re bringing us information.http://www.cinemacuritiba.com
June 18th, 2012 - 23:42
love the site, very nice and meaningful, keep it up.http://www.jogosdocartoon.net
June 20th, 2012 - 11:49
heya..thanks for the post and great tips…i think that hard work is the most important aspect of getting success.http://www.magiccampusbrasil.net
June 27th, 2012 - 12:28
this was awsome!! i’ve been reading them for days now. and i will continue reading your other posts.http://www.impressorashp.org
June 28th, 2012 - 18:11
hey great stuff, thank you for sharing this useful information.http://www.papycom.com
June 29th, 2012 - 05:26
this was awsome!! i’ve been reading them for days now. and i will continue reading your other posts.http://www.facebookbox.com
June 29th, 2012 - 18:06
Post informativo Nice. Outro conhecimento.
___________________________________________
http://www.casaemail.com.br
June 30th, 2012 - 00:40
I was reading some of your articles on this site and I conceive this web site is really informative ! Retain putting up.
July 2nd, 2012 - 17:24
hey there and thank you for your information I’ve certainly picked up something new from right here. I did however expertise a few technical issues using this website, since I experienced to reload the site many times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will very frequently affect your placement in google and can damage your quality score if ads and marketing with Adwords. Anyway I am adding this RSS to my email and could look out for a lot more of your respective fascinating content. Ensure that you update this again very soon.
July 5th, 2012 - 01:23
hi there, its takes low to load because it was hosted in a free web hosting… i don’t have enough money support this stuff…
July 2nd, 2012 - 19:08
What’s up friends, its enormous piece of writing concerning educationand completely defined, keep it up all the time.
July 3rd, 2012 - 02:37
hey there, i liked you blog, it is kinda good. keep up the work.http://www.capaharealty.com
July 3rd, 2012 - 16:29
I blog often and I genuinely thank you for your content. Your article has
really peaked my interest. I will take a note of your site and keep
checking for new details about once a week. I subscribed to your Feed too.
July 3rd, 2012 - 18:20
Great beat ! I would like to apprentice at the same time as you amend your website,
how could i subscribe for a weblog site? The account aided me
a acceptable deal. I were tiny bit acquainted of this your broadcast offered shiny transparent idea
July 4th, 2012 - 02:55
I’m extremely impressed with your writing skills and also with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the nice quality writing, it is rare to see a nice blog like this one today.
August 9th, 2012 - 12:27
Hi my name is Johnny and i like your blog. It is very nice. The design is jus stunning.
August 10th, 2012 - 04:48
Just wanna comment on few general things, The website design is perfect, the content material is real superb. “To imagine is everything, to know is nothing at all.” by Anatole France.
August 16th, 2012 - 12:44
There’s noticeably a bundle to learn about this. I assume you made sure nice factors in features also.
August 20th, 2012 - 16:41
Amazing blog! Do you have any tips for aspiring writers?
I’m hoping to start my own blog soon but I’m a little lost on everything.
Would you advise starting with a free platform like WordPress or
go for a paid option? There are so many options out there that I’m completely confused .. Any ideas? Thank you!