Hello,
I have a WHILE loop that works fine, BUT when I add this to it I get an error. I guess my way is NOT how you suppose to do it
My regular while:
$query_3=mysql_query("SELECT * FROM client_order WHERE Client_id = $cid AND order_number = $order_number ");
while ($row_3=mysql_fetch_assoc($query_3)){
echo 'smt....smt';
}
I need to add:
$paymentRequest->addItem('0001', 'Notebook prata', 2,430.00); // --- 0001 is increasing if I have more than 1 product 0002...000n
The new one:
$query_3=mysql_query("SELECT * FROM client_order WHERE Client_id = $cid AND order_number = $order_number ");
while ($row_3=mysql_fetch_assoc($query_3)){
echo '$paymentRequest->addItem("'.$start_number.'", "'.$productName.'", '.$price.')';
$start_number++;
}
How to I write the code in a correct way that if I have lets say 3 products is will "print" 3 parts like this:
$paymentRequest->addItem('1', 'Notebook prata', 2,430.00);
$paymentRequest->addItem('2', 'Notebook red', 2,430.00);
$paymentRequest->addItem('3', 'Notebook yello', 2,430.00);
Thanks