Jump to content

Need a SQL query to get the start and end date within custom module


Recommended Posts

I have a custom module that I've written and I need to get the order service start date and end date from the within the module's CreateAccount function. I know this is probably a trivial query for someone with knowledge of the DB schema, but for me it will take a while. I'll pay someone $25 to correctly show me how to get this and write me the query. :)

 

-Beau, WebTigers

Link to comment
Share on other sites

function xxxx_CreateAccount($vars){

 

# Get Service Information

$serviceinfo = full_query("SELECT * FROM `tblhosting` WHERE `id`='" . $vars['serviceid'] . "'");

$serviceinfo = mysql_fetch_array($serviceinfo);

$startdate = $serviceinfo['regdate'];

$enddate = $serviceinfo['nextduedate'];

 

}

[php]

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