First thing to check is right from the manual:
foreach works only on arrays and objects, and will issue an error when you try to use it on a variable with a different data type or an uninitialized variable.
What things should look like:
PHP Code:
<?php
$prescriptions = array('step one', 'step two', 'step three', 'step four');
reset($prescriptions); // TO MAKE SURE THE ARRAY IS POINTING AT FIRST ELEMENT
foreach ($prescriptions as $prescription) {
echo "Next Value: $prescription<br />\n";
}
?>
Is $prescriptions an array? Is it an object?