I have a php page which displays a bunch of data from a database. I had this page running fine on my previous host (php version: 4.4.1). To start off with my issue, I have 36 records which I need to update. For some odd reason, only the last 3 get lost. Here is what I should see:
Code:
i=33
id=11
wins=18
loses=37
stock=1
i=34
id=15
wins=2
loses=7
stock=-1
i=35
id=39
wins=1
loses=2
stock=1
But this is what I see:
Code:
i=33
id=11
wins=
loses=
stock=
i=34
id=15
wins=
loses=
stock=
i=35
id=39
wins=
loses=
stock=
Here is how I populate these variables from my database:
PHP Code:
<input name="wins[]" id="s_<? echo $row[member_id]; ?>" value="<? echo $row[member_wins]; ?>">
<input name="losses[]" id="s_<? echo $row[member_id]; ?>" value="<? echo $row[member_losses]; ?>">
<input name="stock[]" id="s_<? echo $row[member_id]; ?>" value="<? echo $row[member_stock]; ?>">
And then this is how I access them:
PHP Code:
for($i=0;$i<$total_count;$i++) {
$wins[$i] = $_POST[ "wins" ][ $i ];
$losses[$i] = $_POST[ "losses" ][ $i ];
$stock[$i] = $_POST[ "stock" ][ $i ];
print "i=".$i;
print "<br/>";
print "id=".$id[$i];
print "<br/>";
print "wins=".$wins[$i];
print "<br/>";
print "loses=".$losses[$i];
print "<br/>";
print "stock=".$stock[$i];
print "<br/>";
print "<br/>";
}
The strange thing is, this code works 100% on another webhost but for some reason, drops the last 3 records on 000webhost.
Does anyone see something wrong?
Thanks in advance!