Jump to content

Fatal error: Call to undefined function mysql_connect() in


judalox

Recommended Posts

Hello guys,

 

Please, I need your help resolve this error. I will appreciate your contributions and below is my code.

 

<?
mysql_connect ("localhost", "user", "password");
mysql_select_db ("database");
 
Many thanks.
Link to comment
Share on other sites

It means you don't have the mysql extension installed, which is good. That, and the fact that you're using the short open tag, suggests you're learning from some really old source.

 

Find a more modern place to learn from that teaches you about PDO.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.