Skip to content

php ACM Error!

Featured Replies

hey pedes

php error se acm manager

 

 

error : Warning: mysql_real_escape_string() expects parameter 2 to be resource, boolean given in /home/a5517260/public_html/account_manager/classes/mysql.class.php on line 72

 

php code mysql.class.php : http://pastebin.com/Y7G5LSwx

 

 

 

try this

 

public function escape_string($q) {

                return mysql_real_escape_string($q, $this->connect);

        }

 

  • Author

u1xfojT.png

 

now it gives 2 of the same errors.!

 

help!

You need to have a valid connection to your MySQL Server first.

 

Do mysql_connect() before using this function.

You need to have a valid connection to your MySQL Server first.

 

Do mysql_connect() before using this function.

You shouldn't post if you can't understand PHP code.

 

mysql_connect() is already there as you can see:

$this->db_inst = @mysql_connect ($this->_host,$this->_user,$this->_pass);

 

The problem is that it's not successful so there is most likely something wrong with the login details. (username, pass etc)

 

  • Author

thanks guys it was a typo i found the problem the password was wrong

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.