Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $list_form = "";
- $frame = "Frame1";
- $query = mysql_query("SELECT * FROM jobs ORDER BY id ASC");
- $productCount = mysql_num_rows($query); // count the output amount
- if ($productCount > 0) {
- while($row = mysql_fetch_array($query)){
- $iName_id = $row["id"];
- $iName = $row["jobs"];
- $iValue = mysql_real_escape_string($_POST[$iName]);
- $query = "UPDATE temp_add ('$iName') VALUES ('$iValue') WHERE id='$Cid'";
- $sql = mysql_query( $query ) or die (mysql_error() . $query);
- $date_sched = "date_sched_" . $iName;
- $iValue = mysql_real_escape_string($_POST[$date_sched]);
- $query = "UPDATE temp_add ('$date_sched') VALUES ('$iValue') WHERE id='$Cid'";
- $sql = mysql_query( $query ) or die (mysql_error() . $query);
- $to_do = "to_do_" . $iName;
- $cost = "cost_" . $iName;
- $tech_paid = "tech_paid_" . $iName;
- $ladder = "ladder_" . $iName;
- // $query = "INSERT INTO temp_add ()VALUES ();
- }
- }
- } else {
- $list_form = "Nothing posted into database";
- }
Add Comment
Please, Sign In to add comment