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?

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.