• Resolved jonalemou

    (@jonalemou)


    Hi,

    I was wondering if there is a way to create a two 2 variables table with one horizontal and one veritable “headers” ?

    My second question is is it possible to query the data inside the table from the php ?

    Basically, I have a table of prices classified in a table by width and length. I would like to create a table to store those prices and to be able to query them in my php code.
    for ex: table[600,200] would return me the correct price associated to the width 600 and the height 200.

    Thank you in advance for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Unfortunately, I’ll have to disappoint you here. Something like this is not directly possible, as TablePress tables can not directly be queried like that from PHP.
    Your best chance might be the TablePress Extension from https://tablepress.org/extensions/table-cell-shortcode/ but you would need to use a cell number instead of actual width/height values to select a desired cell.

    Regards,
    Tobias

    Thread Starter jonalemou

    (@jonalemou)

    Hi Tobias,

    Thank you very much for taking the time to answer my questions.
    Yes I already had a look at the table-cell-shortcode extension but that is not exactly what I want so i will try another way.

    Many thanks.

    Regards,

    Jonathan

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    sure, no problem! Sorry that I could not offer a direct solution here.

    Best wishes,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 Variables Tables & table data query in php’ is closed to new replies.