Help: Undefined Function mysqli_* [SOLVED]
I'm having an issue in 2018.2.1 where all of my mysqli commands (mysqli_connect(), mysqli_query(), etc.) are showing as undefined functions. I've checked the php.ini file for the enabled extensions, phpinfo() shows mysqli active (both in a web page and using the php.ini IDE viewer under settings), and I've tried an invalidate cache and restart. All pdo functions are fine, it's only mysqli.
Please sign in to leave a comment.
Hi there,
Please check if stub file for mysqli is enabled.
Settings/Preferences | Languages & Frameworks | PHP | PHP Runtime
Don't have other ideas right now (you've already covered other stuff, which will not affect functions from being recognized in IDE but still...)
That was it! You saved my day. I don't know why they weren't enabled by default, but only a subset of the external items was selected.
Thanks so much!