Jump to content

Recommended Posts

Posted

 

<?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..

Posted

<?php

 

$server = ""; // Εδώ βάζεις το ip του server που είναι η MySQL.Αν είναι στο pc σου, τότε βάλε localhost.

$user = ""; // Το username σου για την MySQL, αν δεν το έχεις αλλάξει θα είναι "root".

$password = ""; // Τον κωδικό για να συνδεθεί στο username (νομίζω από προεπιλογή δεν έχει κωδικό, εκτός αν έχεις βάλει εσύ).

$database = ""; // Το όνομα τις βάσης δεδομένων (l2jdb αν πρόκειται για L2 server όπως φαντάζομαι..)

 

?>

 

Αντιστοίχως και στα υπόλοιπα...

Posted

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)

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...