Hi,
I'm trying to display records from a database, using the database select, and diplaying them as follows:-
<input type="text" name="test[0]['. $key++ .']" size="2">
<input type="checkbox" name="test[1]['. $value++ .']" value="'.$row[0].'">
I then register array $test, which should register $test[0][1] - $test[0][9] and $test[1][1] - $test[1][9]. On the next page, I'd like to display the results like follows: -
"Key: 1; Value: This is value 1"
I'm using the following to display them, but its not working.
foreach ($test as $key => $value) {
echo "Key: $key; Value: $value<br>\n";
}
I get the follwoing error
"Invalid argument supplied for foreach()"
Any Ideas?
Cheers
Brian