Forum Moderators: coopster
i tried many things but not working..
i want to add a maximum of 10 values to a array called
poems
users must be able to read many poems side by side...
so i need a array to store the database "id" of the poems for retrieval
$p = array();
i want to store something in the array like
$p = array("1","2","5","9");
so that the statement
foreach ($p as $value) {
echo "$value<br />\n";
}
will print
1
2
5
9
please help me add elements to the array using php or Javascript