View Single Post
  #1  
Old 05-19-2016, 12:19 PM
jaspen
Hill Giant
 
Join Date: Apr 2016
Posts: 107
Default PEQ Editor error assistance.

I realize this is probably more proper to post on the PEQ forums but I feel comfortable with the community here. If you feel it is out of place, let me know.

I am trying to set up PEQ editor on my server. I downloaded from https://github.com/ProjectEQ/peqphpeditor using git bash. I followed the instructions in the readme, which were the same as the website's, and get the following error.

Fatal error: Call to undefined function mysql_connect() in C:\xampp\htdocs\peqedit\classes\mysql.php on line 6

This is what I have for my index.php setting that has to do with mysql logging in. It is the same information in my eqemu_config.xml

Code:
// Database Information:
$dbhost = '127.0.0.1'; (I have tried the actual IP and even localhost here.)
$dbuser = 'root';
$dbpass = 'mypassword';  ( I have omitted the actual password.)
$db = 'peq';
$mysql_class = 'mysql'; // Use mysql or mysqli
Here is an exert from the mysql.ini it is referencing.

Code:
class mysql {

  function mysql($username, $password, $database, $host) {
    mysql_connect("$host", "$username", "$password") (This is actually line 6)
      or die('Could not connect: ' . mysql_error());
    mysql_select_db("$database")
      or die('Could not select database');
  }
Feel free to point out my newbish mistake.
Reply With Quote