Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

can someone tell me what the queries with the -> are?


Recommended Posts

from admin/orders.php


displays the product name that was purchased, but specifically what/why are the [$i] and ['name'] from? and where are the select queries for it?

Link to comment
Share on other sites

The $i and 'name' are a way to group all of the items together. Think of them as a row and column setup:




1 Bob 1.00

2 Nancy 2.00


where $i is the row number. So [$i]['name'] means ROW NUMBER 1 and the NAME Column, giving Bob, assuming $i is 1. If you had [$i]['amount'] and $i was equal to 2, then the result would be 2.00.


When you see ->, it refers to a class that is being used and the file for the class is in the includes/classes direectory, usually in the file with the same name, orders.php in this case.



Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...