I hope someone can tell me what I am either doing wrong or have failed to do properly.
I am using PHP with a MySql db. I am trying to build an order system where a page brings back all of the orders and then when you click on a link takes you to another page where you see the details for the order.
The orders page passes the unique order id to the details page via a URL parameter. I have set up the query in the API with a where clause. Set a parameter, expression and default value and when it runs it brings back the correct record. The custom query name is orderdetails and the Step name under API is Order_Details.
On the order details page (OrderDetails.php) I have an App with ID OrderDetails where I defined a Query Param titled idOrders. I have a Server Connect titled scOrderDetails whose Server Action references Order_Details. I also have a variable titled getorderid.
When I pass the URL parameter from the Orders page to the OrderDetails page it comes through and I can both see it in the URL and write it to the page as text using query.idorders. But I can’t get the db results.
I see the data structure when I try to add a field to a bootstrap card but nothing shows. I’ve set the SC Input Parametes to the variable getorderid but nothing comes back. I even tried hard coding in the query.idorders URL param but nothing. I’ve set the expression in the API Step Order_Details to (enclosed in the correct double brackets): $_GET.getorderid.
I have read every How To and post and watched videos and for the life of me I can’t figure out where I am going wrong. No doubt it is something obvious and I am just too clueless to notice, but if someone could help me with this I would be forever grateful.