[KLUG Members] php 4.3.10
Lunitix
lunitix at earthlink.net
Fri Jan 28 02:17:54 EST 2005
Sorry for the multiple postings.
Also, when the scoring is calculated the new php doesn't seem to like
there not being anything passed in the $_POST[sub_score]
if ($_POST["add_score"]) {
//calculating scores
//print_r($_POST);
list($key,$val)=each($_POST["add_score"]);
$val=$val+$_POST["curval"];
$sqlstring = "$key=$val";
while (list($key,$val)=each($_POST[sub_score])) { <-here
$val=$val-$_POST["curval"];
$sqlstring .= ", $key=$val";
} // end while
Yet a $_POST[add_score] can have nothing passed to it and all seems well.
Jon
Minding of Madness
More information about the Members
mailing list