AlexMaN™ Posted May 28, 2010 Posted May 28, 2010 <?php $server = ""; $user = ""; $password = ""; $database = ""; ?> <?php //Do not remove this header //This script package is distributed by XXXXXX , this file comes from XXXXXX`s scripts //You are free to distribute this package as long as the headers stay intact. //This file must stay in the parent directory of the script folder and must be filled out correctly for the scripts to work. $db_user = ""; //your sql username goes here $db_pass = ""; //your sql password goes here $db_name = ""; //your database name goes here $db_serv = ""; //the address of the database goes here $db = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]"); mysql_select_db ( $db_name ); ?> <?php $db_user = ""; $db_pass = ""; $db_name = ""; $db_serv = ""; $res = mysql_connect ( $db_serv, $db_user, $db_pass ) or die ("Coudn't connect to [$db_serv]"); $resdb = mysql_select_db ( "$db_name",$res ); return $res; ?> <?php $MHost = ""; // Hostname/IP of MySQL-Server $MUser = ""; // MySQL login name $MPassword = ""; // Password for login name $DBName = ""; // Database Name $datevers = "%d.%m.%Y"; include "stop_script.php"; $SrvConn = @mysql_connect($MHost, $MUser, $MPassword); if(!$SrvConn) StopScript("Database server is down at the moment. Please try again later!"); ?> Se Auta Ti Prepei Na Balw?Eksigiste Mou Sas Parakalo Analitika..
Blane Posted May 28, 2010 Posted May 28, 2010 <?php $server = ""; // Εδώ βάζεις το ip του server που είναι η MySQL.Αν είναι στο pc σου, τότε βάλε localhost. $user = ""; // Το username σου για την MySQL, αν δεν το έχεις αλλάξει θα είναι "root". $password = ""; // Τον κωδικό για να συνδεθεί στο username (νομίζω από προεπιλογή δεν έχει κωδικό, εκτός αν έχεις βάλει εσύ). $database = ""; // Το όνομα τις βάσης δεδομένων (l2jdb αν πρόκειται για L2 server όπως φαντάζομαι..) ?> Αντιστοίχως και στα υπόλοιπα...
AlexMaN™ Posted May 28, 2010 Author Posted May 28, 2010 Sto $db_serv = ""; Kai Sto $MHost = ""; // Hostname/IP of MySQL-Server Ti Bazw?
Spidey* Posted May 28, 2010 Posted May 28, 2010 Sto $db_serv = ""; Kai Sto $MHost = ""; // Hostname/IP of MySQL-Server Ti Bazw? sto proto to onoma tis db kai sto 2o thn IP sou h to No-Ip host s (prp na exeis anixta ports gia DB-3306 + Remote Access)
AlexMaN™ Posted May 28, 2010 Author Posted May 28, 2010 sto proto to onoma tis db kai sto 2o thn IP sou h to No-Ip host s (prp na exeis anixta ports gia DB-3306 + Remote Access) Ta Ekana Opos Eipes Kai Mou Bgazei Auto To Error.. Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\EasyPHP-5.3.2i\www\stat-pvp.php on line 325
AlexMaN™ Posted May 29, 2010 Author Posted May 29, 2010 Isws na exei kapio error to script s! Mipws Mporeis Na Mou Dwseis Kanena L2 PHP Website? Giati Den Briskw Me Tpt..
Spidey* Posted May 29, 2010 Posted May 29, 2010 Mipws Mporeis Na Mou Dwseis Kanena L2 PHP Website? Giati Den Briskw Me Tpt.. Tha vrw merika kai tha s pm
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now