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

sqlsrv $this->count broken #95

Closed
cullub opened this issue Jan 27, 2016 · 3 comments
Closed

sqlsrv $this->count broken #95

cullub opened this issue Jan 27, 2016 · 3 comments

Comments

@cullub
Copy link

cullub commented Jan 27, 2016

PHP error:
PHP Fatal error: Call to undefined method ezSQL_sqlsrv::count() in C:\inetpub\wwwroot\bx\UI\includes\ez_sql_sqlsrv.php on line 182

Reference to:
$this->count(true, true); (line 182 of ez_sql_sqlsrv.php)

php -v outputs:

PHP 5.6.15 (cli) (built: Oct 29 2015 12:40:34) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

@cullub
Copy link
Author

cullub commented Jan 27, 2016

I think that what it should be referring to (looking at the mysqli page) is $num_querys, from ez_sql_core.php.

@cullub
Copy link
Author

cullub commented Jan 27, 2016

Yep! That fixed it. Just replace count(true, true) with num_querys++, so

$this->count(true, true);  

becomes:

$this->num_querys++;

@cullub cullub closed this as completed Jan 27, 2016
cullub added a commit to cullub/ezSQL that referenced this issue Jan 27, 2016
See Issue ezSQL#95 for details - edited line 182 from `count(true, true)` to `num_querys++`.
@cullub
Copy link
Author

cullub commented Jan 28, 2016

Whoops!! Typo. count(true, true) should be replaced with num_queries++, not num_querys.

cullub added a commit to cullub/ezSQL that referenced this issue Jan 28, 2016
See Issue ezSQL#95.  On line 182, `count(true, true)` should've been `num_queries++`, not `num_querys++`.  (**ie**s, not **y**s)
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

1 participant