Register for your free account! | Forgot your password?

You last visited: Today at 09:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Website error

Discussion on Website error within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Website error

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>&& $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>
*/
    
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Orion-Co</title>
<script type="text/javascript" src="./inc/md5.js"></script>
<link href="default.css" rel="stylesheet" type="text/css" />

</head><body>
<script type="text/javascript"> 
function todd(a,b) { 
a = document.getElementById('row' + a + b); 
//var display = a.style.display ? '' : 'none'; 
//a.style.display = display; 
a.style.display='block'; 

</script>
help me please;;
anone.ious is offline  
Old 07/05/2014, 17:02   #2
 
elite*gold: 0
Join Date: Jun 2014
Posts: 127
Received Thanks: 0
Post

This Is the Error in you try fixe it your self if you know why it is error.


PHP Code:
   $MySQL=mysql_connect($myhost,$myuser,$mypass); 
arneljan is offline  
Old 07/05/2014, 17:18   #3
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by arneljan View Post
This Is the Error in you try fixe it your self if you know why it is error.


PHP Code:
   $MySQL=mysql_connect($myhost,$myuser,$mypass); 
I am new on build website I use appserv/www so I don't know how to fix it...[because I am new here]
anone.ious is offline  
Old 07/05/2014, 18:59   #4
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 906
Received Thanks: 388
First method
Second
Good luck..
I highly recommend you use the first one, will help you on many issues
pintinho12 is offline  
Thanks
1 User
Old 07/05/2014, 19:03   #5
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
The fact that you are still using appserver...............
turk55 is offline  
Thanks
2 Users
Old 07/05/2014, 20:47   #6
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by pintinho12 View Post
First method
Second
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 ]

EDIT: but i have it
anone.ious is offline  
Old 07/05/2014, 21:22   #7
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,209
Received Thanks: 4,111
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.
Spirited is offline  
Old 07/05/2014, 21:42   #8
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by pintinho12 View Post
First method
Second
Good luck..
I highly recommend you use the first one, will help you on many issues
Quote:
Originally Posted by Spirited View Post
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?
anone.ious is offline  
Old 07/05/2014, 22:41   #9
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
Quote:
Originally Posted by anone.ious View Post
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?
Do you engles ?
turk55 is offline  
Thanks
2 Users
Old 07/05/2014, 23:21   #10
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by turk55 View Post
Do you engles ?
lol? what is engles?
anone.ious is offline  
Old 07/06/2014, 16:20   #11
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 906
Received Thanks: 388
Quote:
Originally Posted by anone.ious View Post
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?
i told u mysql_* is deprecated..

Good luck
pintinho12 is offline  
Old 07/06/2014, 17:17   #12
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by pintinho12 View Post
i told u mysql_* is deprecated..

Good luck
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 ?
anone.ious is offline  
Old 07/06/2014, 20:28   #13
 
turk55's Avatar
 
elite*gold: 130
Join Date: Oct 2007
Posts: 1,652
Received Thanks: 701
Why do I have the feeling that the OP wants to run a server and claim the he/she knows how to code?
turk55 is offline  
Thanks
2 Users
Old 07/06/2014, 23:26   #14
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 906
Received Thanks: 388
Quote:
Originally Posted by anone.ious View Post
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
pintinho12 is offline  
Thanks
1 User
Old 07/07/2014, 00:08   #15
 
anone.ious's Avatar
 
elite*gold: 0
Join Date: May 2014
Posts: 48
Received Thanks: 3
Quote:
Originally Posted by pintinho12 View Post
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
anone.ious is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Error website
07/26/2013 - SRO Private Server - 5 Replies
http://img5.imageshack.us/img5/9281/5zu.png
[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



All times are GMT +2. The time now is 09:13.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.