Hi, sorry for the useless title; I didn't want to make a simple question look overly technical!
$summary = $db->select("SELECT prod_total, comments FROM ".$glob['dbprefix']."CubeCart_order_sum WHERE cart_order_id = ".$db->mySQLsafe($_POST['invoice']));
Can someone give me a rough idea what's going on here?
No need to read the rest of my post, just saying what I think's going on.
Here's my take:
$summary is equal to $db, and that in turn is equal to whatever this outputs:
select product total and comments from the cubecart order summary (CubeCart_order_sum) table in my MySQL database, relating to the order ID specified in ? (not sure where this is specified, maybe in the Invoice field in another table, or..)?
and then append to the end of that what whatever may be found in the Invoice field of (not sure which table) the MySQL database this is linked to.
I'm brand new to PHP by the way, started yesterday, but that isn't stopping me, this language is so easy (so far!)