Hopefully a simple one.
I am using a drop down on a form as follows:
// A sample product array
$products = array("Mobile", "Laptop", "Tablet", "Camera");
this works fine but rather than define the list I was hoping to populate the options using a variable populated from Mysql, Here is what I have
// A sample product array
$products = array<?php echo $customoption1data;>;
But I can't seem to get it to work.
The data in the table is formatted as "Mobile", "Laptop", "Tablet", "Camera"
Where am I going wrong?