Jump to content

Help getting mysql info via Smarty


Recommended Posts

Hello, i need a mysql query that will get pending orders status with client name and payment status of the order

 

This is what i have so far..

 

SELECT `id`, `status` FROM `tblorders` WHERE tblorders.status='active' ORDER BY `userid` ASC LIMIT 0,5"

 

I want it to also get the username of the client and the payment of it and if possible the product that was purchased as well.

 

All help greatly appreciated thank you

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