function temp_save($id){
if($id == ""){
$query_new_temp = "INSERT INTO `process`(";
$query_new_temp.= " `process`,";
$query_new_temp.= " `description_ger`,";
$query_new_temp.= " `description_engl`,";
$query_new_temp.= " `used_in`,";
$query_new_temp.= " `contact_person_1`,";
$query_new_temp.= " `in_development`,";
$query_new_temp.= " `contact_person_2`,";
$query_new_temp.= " `documentation`,";
$query_new_temp.= " `program`) VALUES (";
$query_new_temp.= " '".$this->temp_data[process]."',";
$query_new_temp.= " '".$this->temp_data[description_ger]."',";
$query_new_temp.= " '".$this->temp_data[description_engl]."',";
$query_new_temp.= " '".$this->temp_data[used_in]."',";
$query_new_temp.= " '".$this->temp_data[contact_person_1]."',";
$query_new_temp.= " '".$this->temp_data[in_development]."',";
$query_new_temp.= " '".$this->temp_data[contact_person_2]."',";
$query_new_temp.= " '".addslashes($this->temp_data[documentation])."',";
$query_new_temp.= " '".addslashes($this->temp_data[program])."',";
mysql_query($query_new_temp);
$id= "SELECT LAST_INSERT_ID() AS id from process";
}
else{
$query_update_temp = "UPDATE `process` SET ";
$query_update_temp.= " `pocess` = '".$this->temp_data[process]."',";
$query_update_temp.= " `description_ger` = '".$this->temp_data[description_ger]."',";
$query_update_temp.= " `description_engl` = '".$this->temp_data[description_engl]."',";
$query_update_temp.= " `used_in` = '".$this->temp_data[used_in]."',";
$query_update_temp.= " `contact_person_1` = '".$this->temp_data[contact_person_1]."',";
$query_update_temp.= " `in_development`='".$this->temp_data[in_development]."',";
$query_update_temp.= " `contact_person_2`='".$this->temp_data[contact_person_2]."',";
$query_update_temp.= " `documentation`='".addslashes($this->temp_data[documentation])."',";
$query_update_temp.= " `program`='".addslashes($this->temp_data[program])."',";
mysql_query($query_update_temp);
}
return $id;
}
$res = mysql_query("SELECT * FROM table ORDER BY id ASC");
$res = mysql_fetch_assoc[$res];
$letzteid_in_tabelle = $res['id];
Wert aus Tabelle anahnd eiens Zahlenbereichs auslesen
GnuuH 11.06.2007 - 133 Hits -
2 Kombinationsfelder aus Tabelle
Reo 16.06.2007 - 172 Hits - 5 Antworten
markierte Zeilen auslesen
morpheus__85 05.07.2007 - 19 Hits - 3 Antworten
Wert aus Tabelle auslesen
fufufu 19.12.2007 - 184 Hits - 4 Antworten
Tabelle ohne ausgeblendeten Text kopieren in andere Tabelle
BGMR 14.04.2008 - 97 Hits -