Ok I am just fumbling along here and cannot seem to figure out how to do this.
Desired Outcome:
To add an image to an uploads folder and pass along two variables verifying where this image will be pulled. This is all via a web page administration option.
First I connect to the database and a list is generated in this format
Radio Button - Image Name [Camera Image}
The camera image shows if the Image Name already has an uploaded image that it is assigned to.
My problem is how do I pass an array value and then read it from a database pull. Here is the code:
$result = mysql_db_query ("Database", "select Title, WebPageID, SubLevelID FROM $table ORDER BY WebPageID ");
while ($row = mysql_fetch_object($result)) {
print "<font color=\"#000000\" face=\"verdana, arial, helvetica\" size=\"1\">";
print "<tr><td valign=\"middle\" width=\"20\"><input type=\"radio\" name=\"Choice[]\" value=\"$row->WebPageID[$row->SubPageID]\">";
print "</tr><td>$row->Title<img src=\"camera.jpg\">";
print "</td></tr></font>";
Basically I am trying to send 2 seperate values in one array called choice. I have found a lot of docs on how to create and pull from an array. I however have not found much on web generated and database generated arrays.
Thanks,
Bill