when i go to register i get this error Fatal error: Call to undefined function mysql_connect() in C:\AppServ\www\config.php on line 30
my confix.php:
PHP Code:
<?php
//require_once './inc/class.captcha.php';
// Configurations
$myhost='localhost'; // MySQL database address
$mypass='root'; // MySQL server login
$myuser='root'; // MySQL server pass
$accdb='caproj'; //your server account database
//$accdb='account'; //your server account database
$gamedb='caproj'; //your server game database
//register.php
$passhash=false; // set to true if u wish to save hash of pass instead of plain text pass
//status.php
$serveraddress='25.151.25.45'; //your server ip
$serverport=5816; //your server connection port
$servername='Blend-Co'; //your server name
//ranks.php
$tableSet=' width="440" border="1" align="center"'; // rank tables settings html code
$limit=33; //records[lines/rows] limit for ranks table
$limit2=13; //records[lines/rows] limit for half of an rank table guilds
// DON'T CHANGE ANYTHING BELOW THIS LINE
// // // // // // // // // // // // // // // // // // // //
// even more if u dont know what u r doing !!!
$MySQL=mysql_connect($myhost,$myuser,$mypass);
mysql_select_db($gamedb);
// mainly ranks.php ...
function prof ($val) { //params> int_proffesion returns>string_proffesion //made for prof and old_prof
if ($val>9 && $val<16) return 'Trojan';
if ($val>19 && $val<26) return 'Warrior';
if ($val>39 && $val<46) return 'Archer';
if ($val>99 && $val<102) return 'Taolist';
if ($val>131 && $val<136) return 'Water';
if ($val>141 && $val<146) return 'Fire';
if ($val>0) return 'E> Taolist??';
return (Empty($val) ? '' : 'Error'); // when old prof is not set print nothing in table
}
function pk ($val) { //params> int_pk returns>string_PKpoints
if ($val>=1000) return '<font color="black"><b><u>'.$val.'</u></b></font>';
if ($val>=100) return '<font color="black"><b>'.$val.'</b></font>'; // <font color="darkgreen">
if ($val>=30 && $val<100) return '<font color="red">'.$val.'</font>';
return $val; //I know ... lets say ... STANDART dot
}
function noble ($val,$cash) { //params> int_nobleNr. int_donated returns>string_nobleRank
if ($val<4) return 'King/Queen';
if ($val<16) return 'Prince';
if ($val<51) return 'Duke';
if ($cash>200000000) return 'Earl';
if ($cash>100000000) return 'Baron';
if ($cash>30000000) return 'Knight';
return 'Error'; //I know ... lets say ... STANDART dot
}
/*
<script type="text/javascript">
function toggle(a,b) {
a = document.getElementById(a);
b = document.getElementById(b);
var display = a.style.display ? '' : 'none';
a.style.display = display;
var displaydva = a.style.display ? 'block' : 'none';
b.style.display = displaydva;
}
</script>
<script type="text/javascript"> function Rshow(o) {
var a = document.getElementByID('b'+o+'');
a.style.display='none';
document.getElementByID('row'+o+'').style.display='block';
}
function Rhide(o) {
document.getElementByID('b'+o+'').style.display='block';
var a = document.getElementByID('row'+o+'');
a.style.display='none';
} </script>
*/
Go to your AppServ folder, look for the PHP folder, then (I am using WampServer because mysql_* is deprecated, i strongly recommend you to learn PDO and switch to newer versions of apache and php) look for php.ini there, (NOT OLD or NEW or WHATEVER.. its php.ini), its inside of any folder on PHP, look for this line
Code:
;extension=php_mysql.dll
and uncomment it
Good luck..
I highly recommend you use the first one, will help you on many issues
Go to your AppServ folder, look for the PHP folder, then (I am using WampServer because mysql_* is deprecated, i strongly recommend you to learn PDO and switch to newer versions of apache and php) look for php.ini there, (NOT OLD or NEW or WHATEVER.. its php.ini), its inside of any folder on PHP, look for this line
Code:
;extension=php_mysql.dll
and uncomment it
Good luck..
I highly recommend you use the first one, will help you on many issues
i downloaded the php.ini but when i search the ;extension=php_mysql.dll i don`t find [ i searched it on the php.ini ]
1. Unless your MySQL password and username are both "root", your website isn't configured to connect to MySQL.
2. Your source doesn't even use MySQL, so this website is useless.
Go to your AppServ folder, look for the PHP folder, then (I am using WampServer because mysql_* is deprecated, i strongly recommend you to learn PDO and switch to newer versions of apache and php) look for php.ini there, (NOT OLD or NEW or WHATEVER.. its php.ini), its inside of any folder on PHP, look for this line
Code:
;extension=php_mysql.dll
and uncomment it
Good luck..
I highly recommend you use the first one, will help you on many issues
Quote:
Originally Posted by Spirited
1. Unless your MySQL password and username are both "root", your website isn't configured to connect to MySQL.
2. Your source doesn't even use MySQL, so this website is useless.
now i downloaded wamp server the new and i get this error now Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\config.php on line 30
i need download mysql?
now i downloaded wamp server the new and i get this error now Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\config.php on line 30
i need download mysql?
now i downloaded wamp server the new and i get this error now Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\config.php on line 30
i need download mysql?
ahh k but i don`t have a time to learn PDO so i just want finish my site and thanks for help bro really thanks [ i use wamp server i need download it? i really want use on PDO but i don`t understand it... so just answer to my if i use wamp i need download that ?
ahh k but i don`t have a time to learn PDO so i just want finish my site and thanks for help bro really thanks [ i use wamp server i need download it? i really want use on PDO but i don`t understand it... so just answer to my if i use wamp i need download that ?
unless u use an older version of Wamp you wont be able to run mysql_* on your web server...
just download App Serv 2.5.10 and you will be fine...
And dude, you dont develop a server if you dont know how to, unless you have peoples to code it for you...
If you want to be a boss, hire someone, otherwise you have 2 extra choices:
1. You learn how to properly code a source
Will get some time, but its good since you can code the server on your own way... I am coding mine, and different of all other sources that i saw out there that on the attack code checks if the user has a GoldPrize and add 20% attack, im gonna do it the best way, which will read the itemtype to increase the damage, and alot of other shit that i saw out there... Like 1 void to check the items you need to make something... rather making the action system... but thats my choice
2. You give up and try something else to earn money.
i had a server that gave me 600$/week on the "binary 5095" time, ppls are stupid enough (I am vip 6 on 2.0[full +12, yes{fuck it}]) to spend money on conquer...
Choose wisely...
I recommend: Option 1
Because by learning how to code a Conquer Server with C#, automatically you learn how to code C#!
Hell yeah !
Seriously, you believe it?
And then, you will develop something called logic, that we use it everyday to every single thing just to make our choices, what is good or not... Should i do it or not? OMG! Logic is a useful thing, not only for programming Im pretty sure you can make it!
Good luck
unless u use an older version of Wamp you wont be able to run mysql_* on your web server...
just download App Serv 2.5.10 and you will be fine...
And dude, you dont develop a server if you dont know how to, unless you have peoples to code it for you...
If you want to be a boss, hire someone, otherwise you have 2 extra choices:
1. You learn how to properly code a source
Will get some time, but its good since you can code the server on your own way... I am coding mine, and different of all other sources that i saw out there that on the attack code checks if the user has a GoldPrize and add 20% attack, im gonna do it the best way, which will read the itemtype to increase the damage, and alot of other shit that i saw out there... Like 1 void to check the items you need to make something... rather making the action system... but thats my choice
2. You give up and try something else to earn money.
i had a server that gave me 600$/week on the "binary 5095" time, ppls are stupid enough (I am vip 6 on 2.0[full +12, yes{fuck it}]) to spend money on conquer...
Choose wisely...
I recommend: Option 1
Because by learning how to code a Conquer Server with C#, automatically you learn how to code C#!
Hell yeah !
Seriously, you believe it?
And then, you will develop something called logic, that we use it everyday to every single thing just to make our choices, what is good or not... Should i do it or not? OMG! Logic is a useful thing, not only for programming Im pretty sure you can make it!
Good luck
OMG!!! [ k i readed it thanks bro you really best here , Spirited , Arco , KraHen , mejo33 . arneljan , Krovacs , turk55. ] thanks for all
[HELP] Website error 08/28/2012 - EO PServer Hosting - 2 Replies anyone can solve this ?
i dont know whats wrong with it, both xampp and wamp i use, still same error.. now i use wamp, how to fix this ?
website error ! 02/20/2012 - SRO Private Server - 1 Replies HTTP Error 404. The requested resource is not found.
:S who can help me-...... i also edited ODBC .... what should me to do
SRO_VT_ACCOUNT....sql native server and sql server !
[HELP] Website Error. 03/05/2011 - EO PServer Hosting - 7 Replies EDIT!#!@#FIXED THIS. It was stupid of me to post this, TO FIX THIS JUST DOWNLOAD AN OLDER VERSION OF Xampp. :S
Warning: mysql_connect() : Connecting to 3.22, 3.23 & 4.0 is not supported. Server is 4.0.18-nt in C:\xampp\htdocs\config.php on line 20
What does this mean, How can I fix it. :o Plz help?
This error occured while using
EO Website(By Elite4Demons)
[HELP] website error 03/18/2009 - EO PServer Hosting - 5 Replies hi guyz , suddenly my website didnt work an idk why it give the error
" Fatal error: Call to undefined function mysql_connect() in C:\AppServ\www\config.php on line 15"
i attached my config.php