i added a ',' at the end of the $newValue so that each entry into the table field would be seporated with a , as shown as :
[php]
$newValue .= $row['item'] .= $row['cost'].=',';
[/php]
My next stage would be then to retreive the string as a whole and use the explode function to seporate each entry via a comma.
would it be something like
[php]
explode(',', $row['item']);
[/php]
cut a long story short I have been asked to create a web based internal ordering system for a local Pizza delivery company. the total_orders table is a temporary table which holds exactly what the customer would like. then using the code you have helped me with, it will then be inserted into the orders_complete table for later reference, so for example if the casher needs to re print the customer receipt or the kitchen check they can do.
[php]
$newValue .= $row['item'] .= $row['cost'].=',';
[/php]
My next stage would be then to retreive the string as a whole and use the explode function to seporate each entry via a comma.
would it be something like
[php]
explode(',', $row['item']);
[/php]
cut a long story short I have been asked to create a web based internal ordering system for a local Pizza delivery company. the total_orders table is a temporary table which holds exactly what the customer would like. then using the code you have helped me with, it will then be inserted into the orders_complete table for later reference, so for example if the casher needs to re print the customer receipt or the kitchen check they can do.
Comment