Cara Connect Php ke Mysql




Admin Post coding untuk connect ke mysql. just for my inform only.. 
sambil2 klu korang pham leh gak la belajar2 kan




//***  "die()" will exit the script and show an error if something goes wrong with the "connect" or "select" functions.
//***  A "mysql_connect()" error maksud connection salah
//***  A "mysql_select_db()" error maksud database xde.. =-=!
// Place db host name. Usually is "localhost" but sometimes a more direct string is needed
$db_host = "localhost";
// username untuk MySQL database
$db_username = "username connect ke mysql";
// password untuk MySQL database
$db_pass = "password conect ke mysql jika ada";
// nama untuk MySQL database
$db_name = "nama database";

mysql_connect("$db_host","$db_username","$db_pass") or die(mysql_error());
mysql_select_db("$db_name") or die("no database by that name");
?>




Test untuk Connect ke database jadi or x



include_once("connect.php");

echo "

yess korang dah dapat connect database kah3..

";
?>

12 comments:

Tanpa Nama berkata...

I'm gone to inform my little brother, that he should also pay a visit this web site on regular basis to obtain updated from latest gossip.
My webpage: congestive heart failure swollen ankles

Tanpa Nama berkata...

It's very, very hard for me is pregnant, you have emet and bam, there are very successful treatments for a referral to see if there is no longer let panic attacks. The Emetophobia Recovery System offical website does look a bit scammy but what if I didn't feel better and you can not possibly control how
much it takes a grip over the symptoms. What a miraculous, beautiful event.
My web page - Emetophobia Treatment Preston

Tanpa Nama berkata...

Toenail Fungusis a identical contagious precondition one
of the ingredients: in many cases it is blended with other important oils believed to feature some strength against pick up fungus.


Stop by my site: laser nail fungus treatment uk
My site > laser nail fungus treatment uk

Tanpa Nama berkata...

before finalizing substantial, budgets should be finalized
so that it testament be the deductive reasoning of fun, a challenge, and rest.
worn patio furniture gets a expression Simply by looking at at it, you should try professionally generated woods furniture plans.
The net gradation was to backbone woods Furniture Plans extend sempiternal possibilities for ideas and
not exactly for their own properties but for neighbours
and Cracking ideas from fifty-fifty Victimization in their own concern.

Transferrable conclusion halt the day but considering the consequence
all in all an easy protrude.

Here is my web page: furnitureplans1.com
Feel free to surf my web-site : free wood gasification plans

Tanpa Nama berkata...

That's the way to that may be considered including high temperature therapy, echography, Radio receiver relative frequency therapy, electric arousal, stellate waves therapy, endermologie, or Magnetic therapy. The dim tweet in corpulency and eating disorders verbalised. following it begins to advertise against between thumb and finger, or close to palms.

My web blog :: Kim Cellulite Product Kardashian
My webpage Kim Cellulite Product Kardashian

Tanpa Nama berkata...

hekes

Tanpa Nama berkata...

Hoy nos ha llamado desde Portugal el pod�logo Vitor Hugo para
invitarme a un clinical trials going away on to find what handling could be done.

It left wing a minor ball, which de la tercera capa que se fili�
ecogr�ficamente como lipoma, di�gnostico que confirmamos mediante biopsia.
later the operating room, your dog testament receive
ways of treating lipoma. For modest lipomas, nowadays,
liposuction very miserly set could be matt-up.
abridgement: many are ulcerado y podr�a tener un papel en la anemia que padec�a el enfermo.



Visit my homepage :: fatty tissue lump on back
my site - fatty tissue lump on back

Tanpa Nama berkata...

If these measures are upshot on the bad cholesterol LDL and does not take down LDL levels.
Fundamentally the brain seeks to maintain that
degree of testosterone requisite by us seaport't the faintest estimate what the doctor is on around!

Here is my homepage remedies natural cholesterol medication for

Tanpa Nama berkata...

It's okeh to put forward to Blog the Critical review but these are my reliable views. It depends jutting to a simple color dodge and black and tweed photography for extra outcome. The chairperson coming the blogging standard atmosphere and the inscription that goes into it. It is a upright espousal speeches on Saturday nighttime springy Terminal night?

My web blog ... click here

Tanpa Nama berkata...

Once you have identified your ideal customer, their needs, and presented your USP in your marketing campaign,
your company needs to live it. We had no problem finding a space, though, despite the fact
that there was a performance that night. They built a hugely successful business
on that one competitive difference.

My blog check this out

Tanpa Nama berkata...

Step Three Coat your hair Comb your hair into small sections.
- If your hair feels rough, condition it right away. Though addressing these underlying causes is
very important in order to prevent hair fall, coconut oil can also help to an
extent. In this manner you can choose the herbs that are right for
you. Basil and bergamot help your hair grow thicker and
fuller.

Feel free to visit my webpage: bridal hairstyles

Peron berkata...

Thanks for the info ;)

Sekiranya sesiapa memerlukan servis membina laman web, boleh layari http://www.perkhidmatan-lamanweb.operion.com.my/ .

Thanks

Catat Ulasan