Jump to content

API Documentation and MySQL Interface


triadwebzone

Recommended Posts

This post has two questions in it:

 

1. The wiki doesn't seem to have a very comprehensive repository of all the functions available for use within the WHMCS API. Is there a more complete list available of the different types of hooks and function calls I can make?

 

2. I've been downloading Addons and hooks to try and see examples of the MySQL interface in use, since I'm pretty certain every addon doesn't have it's own MySQL interface. I've seen usage of MySQL commands like select_query, update_query, insert_query etc available for use within the system, which aren't standard MySQL commands. Is a similar command that's roughly equivalent to mysql_insert_id() or possibly any documentation on the connection interface?

 

Thanks!

Link to comment
Share on other sites

  • 3 weeks later...

I've not found this either, I've been using the examples on how to use these but haven't found any unfortunately. Which is annoying, as some cases, like delete_query, seems like the last field is the id, but what if you have a table with more than one primary key? I'm about to experiment with that now, otherwise I'll be using mysql_query again... (even assuming that'll work...).

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated