Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute() warning in get_user() --> Database.php #2

Closed
nomadmtb opened this issue Oct 2, 2013 · 2 comments
Closed

Execute() warning in get_user() --> Database.php #2

nomadmtb opened this issue Oct 2, 2013 · 2 comments
Assignees

Comments

@nomadmtb
Copy link
Collaborator

nomadmtb commented Oct 2, 2013

Warning: mysqli_stmt::execute() expects exactly 0 parameters, 1 given in /var/www/548/cins548/classes/Database.php on line 17

Issue arrises when a user tries to log-in with existing creds.

@glacials
Copy link
Owner

glacials commented Oct 2, 2013

Woops, this is my fault. I was following the example from http://php.net/manual/en/pdo.prepared-statements.php without realizing it's specific to PDO, which we're not using. Looks like we need to revert to the more verbose prepared statements. I'll try to fix this today or tomorrow.

@ghost ghost assigned glacials Oct 2, 2013
@nomadmtb
Copy link
Collaborator Author

nomadmtb commented Oct 2, 2013

It's all good! Too bad it doesn't work with mysqli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants