PHP mysql Connection!

In PHP always we required mysql connection. So i have developed my own way of creating connection. Here we go!


<?php
$host = "localhost";
$user = "root";
$pass = "";
$db = "test_db";

$cc = mysql_connect($host,$user,$pass);
$select_db = ($cc,$db);
$qry = "select * from table_abc";
---
--- Process ---
---

mysql_close($cc);
?>;


This is the simple way to make php mysql database connection. We can add additional error message if some process failed! using if not i.e !

1 comments:

Judi Kartu Poker Onlline said...

Situs Poker Online Terpercaya

Website Judi Poker Online

Link Alternatif Poker Online

Texaspoker

Post a Comment