Jump to content

Need Direct Link to Service


alinford

Recommended Posts

I need to create a direct link to a service, and I am not very mysql literate.

 

This url puts me on the Products page:

clientarea.php?action=products

 

This is what is on the tpl, and works if I am able to feed it a service ID:

clientarea.php?action=productdetails&id={$service.id}

 

So, what I need is a mysql query to find the id of the first service on the logged in account.

Something like this (except that it works):

  $result = mysql_query("SELECT id FROM tblhosting WHERE id=".$ca->getUserID());
  $data = mysql_fetch_array($result);
  $id= $data[0];

  $ca->assign('service.id', $id);

 

Then I need to add it to my url:

clientarea.php?action=productdetails&id={$service.id}

Edited by alinford
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