Search found 4 matches
- Mon Dec 15, 2003 11:35 pm
- Forum: PHP - Code
- Topic: whole number/division/modulus?
- Replies: 2
- Views: 312
- Mon Dec 15, 2003 10:41 pm
- Forum: PHP - Code
- Topic: whole number/division/modulus?
- Replies: 2
- Views: 312
whole number/division/modulus?
I have an array, I want to check for errors before placing in my db. їdata] => Array ( їE001] => 40.00 їE021] => 2.25 їE022] => 1.16 їE01S] => 0.00 їE012] => 0.00 їE09B] => 0.00 ) Now, these values can only have possible values of...
- Mon Dec 15, 2003 5:30 pm
- Forum: PHP - Code
- Topic: array help
- Replies: 2
- Views: 388
Solution
Here is the solution: if ( is_array( $_POSTї'data'] ) ) { $values = $_POSTї'data']; $keys = array_keys($_POSTї'data']); for ($i=0; $i < count($keys); $i++ ) { $pay_typesї$keysї$i]]ї'value'] = sprintf("%01.2f",$va...
- Mon Dec 15, 2003 2:50 am
- Forum: PHP - Code
- Topic: array help
- Replies: 2
- Views: 388
array help
I have 2 arrays: Array ( їemployee_id] => 13351 їdata] => Array ( їE001] => 40 їE021] => 10 їE022] => їE09B] => ) and Array ( їE001] => Array ( їearnings_code] => E001 їdescription] => Regular Hours/Earnings &a...