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.

0

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...)

2
Avatar
Permanently deleted user

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!

0

请先登录再写评论。