I have am building an application that will create documents for interneal proccess fr DHL, a user will look at an <option></option>
box and will select multiple selections
hee multiple selections will be outputed to an html page that they can preview before submiting for approval.
After the review there selections I want to take the selected <options></options> wich is an array and insert thim into a database. my problem is how do I assign them diffrent $variable names for database insert.
Example
I am trying to name results form a query that produces an array, How do I name each individual result a different $variable name?
my query output looks like this
<?
if (is_array($link_document))
{
while(list($key, $value) = each($link_document))
{
echo ("$value <br>");
}
}
?>
The result is something like this
AM101010
AM102020
AM230410
CS102910
CS102030
I want to name each result so I can pass it to a INSERT INTO sql statement