[HELP] Web

Newbie Spellweaver
Joined
Sep 21, 2007
Messages
58
Reaction score
7
xtannerx - [HELP] Web - RaGEZONE Forums


:( Im open port 80 again this erroe
:( I do hamachi My friend or I'm can login game but my friend can't login " only web "

How can i do it ?
 
Code:
<?php
// By PeChU!!
if(stristr($_SERVER['PHP_SELF'], "config.php")) die('<center><b><h1><font color=red>Buraya Biraz Zor Girersiniz... :) Admin : [GM]Admin</font></h1></b></center>');
$host = "localhost or My Wan Ip"; // host mysql
$user = "root"; // username
$pass = "root"; // password
$db = "databasename"; // database name

mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());

function nw($N, $C){
$reg = mysql_query("INSERT INTO accounts (username, password, accesslevel) VALUES( '$N', '$C', '100')")or die(mysql_error());
return $reg;
}
function exi($user){
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
return $check2;
}

?>

My config.php

i do but i can't login.
 
ok I know your Problem.

Dont put your Ip at the config.ini

It Should be like these:

-----------------------------------------------------------------------------------

<?php
// By PeChU!!
if(stristr($_SERVER['PHP_SELF'], "config.php")) die('asdada');
$host = "localhost"; // host mysql --------------> Dont put your Ip in here just fill it localhost as the default
$user = "root"; // mysql username
$pass = "Your Pass"; // mysql password
$db = "flyff"; // mysql db

mysql_connect($host,$user,$pass) or die(mysql_error());
mysql_select_db($db) or die(mysql_error());

function nw($N, $C){
$reg = mysql_query("INSERT INTO accounts (username, password, accesslevel) VALUES( '$N', '$C', '100')")or die(mysql_error());
return $reg;
}
function exi($user){
$check = mysql_query("SELECT * FROM accounts WHERE username = '$user'");
$check2 = mysql_num_rows($check);
return $check2;
}

?>


---------------------------------------------------------------------------------------
 
No Not That... ok Download this

Just search on google.. Type in Wamp Server 2.0

It's Easy To use Bud..Try that It's a Freeware
 
So install it
Then Run
Go to the www folder of the wamp server then move your webpage inside
Then Put it Online and Start all Services
Then try your localhost now
To Test type in the url add.
 
Back