Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. CO1. My expected outcome is to "sort the data by clicking the heading of the table column." E.g. Click ID sort in numerical order of the ID column, Click Price sort in numerical order of the Price column, etc etc. 2. $$Price outputs a numerical value from the $price variable and I've added a $ in front. It works, didn't know it wasn't correct syntax. 3. Didn't know the page needed to be stated, this is the first time I've done this kind of thing and assumed it would look for the query on the current page.
      singulars
    2. CO4. What checks would you suggest? 5. The two different variables are because the code at the bottom is an example I found on the net, i customised to suit my code on my site. I did mention it was sourced from an example. 6. The single quotes worked, I've had issues with mixing single with double when spitting out html data from php. 7. Will be debugging but looks like my problem was not mentioning the page in the query for a start so basically nothing was happening.
      singulars
    3. CO@Bjorn 1. I'm not here to decipher your mind. Your issue is because of a certain problem. I don't know your exact problem, so I can't give you an exact solution to that problem. 2. if `$price` is 5, `$$price` returns `$5` which is probably 0 or undefined. It is also bad practice. 3. Now you know. 4. Checks that are outside the scope of your learning at the moment. Just code for fun for now. 5. It's common to make small mistakes and syntax errors, even for experienced devs. 6. What works for you is different from what works for everyone and different from W3C standards sometimes.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload