@@ 407-415 (lines=9) @@ | ||
404 | // Populate the syntax arrays |
|
405 | reset($vars); |
|
406 | //while (list($key, $value) = each($vars)) { |
|
407 | foreach ($vars as $key => $value) { |
|
408 | $this->fieldClean($key); |
|
409 | $this->clean($value); |
|
410 | if ($setClause) { |
|
411 | $setClause .= ", \"{$key}\"='{$value}'"; |
|
412 | } else { |
|
413 | $setClause = "UPDATE \"{$table}\" SET \"{$key}\"='{$value}'"; |
|
414 | } |
|
415 | } |
|
416 | ||
417 | reset($nulls); |
|
418 | //while (list(, $value) = each($nulls)) { |
|
@@ 430-438 (lines=9) @@ | ||
427 | ||
428 | reset($where); |
|
429 | //while (list($key, $value) = each($where)) { |
|
430 | foreach ($where as $key => $value) { |
|
431 | $this->fieldClean($key); |
|
432 | $this->clean($value); |
|
433 | if ($whereClause) { |
|
434 | $whereClause .= " AND \"{$key}\"='{$value}'"; |
|
435 | } else { |
|
436 | $whereClause = " WHERE \"{$key}\"='{$value}'"; |
|
437 | } |
|
438 | } |
|
439 | ||
440 | // Check for failures |
|
441 | if (!$this->conn->Execute($setClause.$whereClause)) { |