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;
}
}
?>
Leave a comment:
-
its inbox is locked nd file not uploading any body iz heer who knw hw cn we fix it ?
Leave a comment:
-
-
you need databaseOriginally posted by vinay jamwal View Posthey frndz anybdy plz teach me how 2 connect it to database.......m new plz teach me... plz plz
database got surelly NAME, USERNAME & PASSWORD
scritp ususally contain some file like config.php, settings.php, db.php or such...
you should recognize correct file by this lines inside:
or something like this:PHP Code:// each line input your deatails
$host = "localhost";
$database_name = "db_name_here";
$db_username = "username";
$db_password = "password";
since you are not able to create BD connectionPHP Code:define("_DB_HOST","localhost");
define("_DB_USER","username");
define("_DB_PASS","password");
define("_DB_NAME","db_name_here");
i believe that you use some ready made script,
which means the rest is already done...
Leave a comment:
-
Plz Help me
hey frndz anybdy plz teach me how 2 connect it to database.......m new plz teach me... plz plz
Leave a comment:
-
Mp3 and wallpaper search engines script leaked and shared from indiapk.com & htrocks
mp3 and wallpaper search engines script leaked and shared from indiapk.com and htrocks.netAttached Files
Leave a comment:
-
@razor, if you can do it why don't you help us by doin it for us? Not everyone knows web design or codes like you do! I'm still learning and i think some others also are like me...if you can, help us out!
Leave a comment:
-
am waiting for the same thingOriginally posted by VCollinzo View PostYeah...but, any idea how we can fix the login.php bug? I Really love this script. . .
Added after 58 minutes:
cant u help me with thisOriginally posted by razor View Postevrything is right in login.php , use ur brain , read core.php and create proper sql lolzz..Last edited by xfactor; 27.06.12, 19:07.
Leave a comment:
Leave a comment: