Website error

07/05/2014 16:34 anone.ious#1
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;;
07/05/2014 17:02 arneljan#2
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); 
07/05/2014 17:18 anone.ious#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]
07/05/2014 18:59 pintinho12#4
First method
Second
Good luck..
I highly recommend you use the first one, will help you on many issues
07/05/2014 19:03 turk55#5
The fact that you are still using appserver...............
07/05/2014 20:47 anone.ious#6
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 [Only registered and activated users can see links. Click Here To Register...]
07/05/2014 21:22 Spirited#7
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.
07/05/2014 21:42 anone.ious#8
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?
07/05/2014 22:41 turk55#9
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 ?
07/05/2014 23:21 anone.ious#10
Quote:
Originally Posted by turk55 View Post
Do you engles ?
lol? what is engles?
07/06/2014 16:20 pintinho12#11
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..
[Only registered and activated users can see links. Click Here To Register...]
Good luck
07/06/2014 17:17 anone.ious#12
Quote:
Originally Posted by pintinho12 View Post
i told u mysql_* is deprecated..
[Only registered and activated users can see links. Click Here To Register...]
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? [Only registered and activated users can see links. Click Here To Register...] 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 [Only registered and activated users can see links. Click Here To Register...] ?
07/06/2014 20:28 turk55#13
Why do I have the feeling that the OP wants to run a server and claim the he/she knows how to code?
07/06/2014 23:26 pintinho12#14
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? [Only registered and activated users can see links. Click Here To Register...] 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 [Only registered and activated users can see links. Click Here To Register...] ?
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#! :eek: :eek: :eek: :eek:
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 :D Im pretty sure you can make it!
Good luck
07/07/2014 00:08 anone.ious#15
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#! :eek: :eek: :eek: :eek:
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 :D 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 :)