Quote:
Originally Posted by dcarson
can you help me fix this php code?
foreach ($Count as $curNum)
echo "<p>$CurNum</p>";
|
$CurNum is not initialized.
This is the danger with using cute inner caps, or any caps, with
php variables. I suggest you use all lowercase for all variables. If you want to use javascript style for functions, that's another matter.
#2 What is this trying to do? You have a foreach loop inside a while loop (or following a while loops, it's impossible to parse) with incorrect syntax. Furthermore, $Count is not an array.
You need to study up on some very basic
php principles before you start coding.