Bro pls give me ful working sql of htrocks.
Htrocks.net hacked and shared now
Collapse
X
-
Originally posted by vinay jamwal View PostPlz Help me
hey frndz anybdy plz teach me how 2 connect it to database.......m new plz teach me... plz plz
try this one, it should work =)
PHP Code:<?php
$db_host = "127.0.0.1"; //your database host (e.g 127.0.0.1)
$db_user = "root"; //your database username (e.g root)
$db_pass = "1234"; //your database password (e.g 1234)
$db_name = "coding_db"; //your database name (e.g coding_db)
$connection = mysql_connect("".$db_host."","".$db_user."","".$db_pass."");
///This will check if you have successfully made the connection to database server
if(!$connection)
{
die("FAILED TO CONNECT TO DATABASE");
}
else
{
$check_db = mysql_select_db("".$db_name."");
///This will check if your database is existing
if(!$check_db)
{
die("Database Not Exist");
}
else
{
return true;
}
}
?>
http://wapx.amob.com
Applications, Games, Wallpapers, Ringtones, Videos, Themes, Screensaver and More!!!
Comment
Comment