I've just spent some time battling the "fatal error call to undefined function mysql_connect()" message, and as it wasn't clear to me, I thought it may help to say:
php_mysqli does not replace the php_mysql library. It only extends it. You need the php_mysql library !
Requerimientos
Para contar con éstas funciones, debe compilar PHP con soporte de la extensión mysqli.
Nota:
La extensión mysqli está diseñado para funcionar con la versión de MySQL 4.1.13 o posterior, o 5.0.7 o posterior. Para versiones previas, por favor consulte la documentación de la extensión MySQL.
integraljohn at gmail dot com ¶
1 year ago
dennylin93 at cnmc32 dot hs dot ntnu dot edu dot tw ¶
3 years ago
The required extensions will be pulled in automatically on FreeBSD, unless you manually remove them after installation.
