Message: mysqli_real_escape_string() expects parameter 1 to be mysqli, boolean given |
i got the message
Code: Severity: Warning im connect to 3 different database with different server too PHP Code: $active_group = 'default'; im try to call model function username_exist PHP Code: class Pvpgn extends CI_Model {
It doesn't seem to be anything you're doing. It looks like it might be an issue with your host's implementation of MySQL. Does your problem start when you move your application from your local computer to your internet host? I suppose it could also be a bug in Codeigniter. Check out thisĀ Stack Overflow question.
Hey, don't work without a PHP debugger. Several free IDEs have this features built in. Two are NetBeans and CodeLobster. Without a debugger, it's like you're driving with a blindfold on -- you are going to crash!
Try naming the pvpgn property (your db connection) something different in your pvpgn model.
The error means just that your DB connection isn't initialized yet ... set 'autoinit' to TRUE.
|
Welcome Guest, Not a member yet? Register Sign In |