Jump to content

[SOLVED] (mysql_connect_errno()) not recognised


Maracles

Recommended Posts

I am learning mysql at the comment and in the tutorial I am using I am taught to use the function (mysql_connect_errno()) to check for problems with the connection between page and database. This function however does not appear to be recognised, mysql_error is however. I cannot find any official documentation on (mysql_connect_errno()), am I missing something?

Sorry, I noticed a typo in my above post. The function you found on Google is actually tthe function which I am using now (which I did find in Google!).

 

However in the book, and the test source code that came on the accompanying CD, it actually uses (mysqli_connect_errno()), this is why I was getting confused? Is the book therefore mistaken?

Thank you for that. That kind of makes more sense, the book refers to object-orientated and procedural code and attempts to push the object orientated approach which I find slightly more difficult to grasp.

 

I think me trying to use one and the book teach the other is a little confusing for me!

 

 

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.