Subversion-Projekte lars-tiefland.em_wm

Revision

Revision 28 | Revision 31 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 28 Revision 30
Zeile 77... Zeile 77...
77
			$this->g_date=intval($g_date);
77
			$this->g_date=intval($g_date);
78
			$this->g_type=intval($g_type);
78
			$this->g_type=intval($g_type);
79
		}
79
		}
80
		function save($op)
80
		function save($op)
81
		{
81
		{
82
			global $meld, $db_meld;
82
			global $db;
83
			switch($op)
83
			switch($op)
84
			{
84
			{
85
				case "save":
85
				case "save":
86
					$sql="INSERT INTO games (g_name, g_m1, g_m2, g_g1, g_g2, g_location, g_date, g_type)
86
					$sql="INSERT INTO games (g_name, g_m1, g_m2, g_g1, g_g2, g_location, g_date, g_type)
87
						VALUES ('$this->g_name', $this->g_m1, $this->g_m2, $this->g_g1, $this->g_g2, $this->g_location, $this->g_date, $this->g_type)";
87
						VALUES ('$this->g_name', $this->g_m1, $this->g_m2, $this->g_g1, $this->g_g2, $this->g_location, $this->g_date, $this->g_type)";
Zeile 91... Zeile 91...
91
					break;
91
					break;
92
				case "del":
92
				case "del":
93
					$sql="DELETE FROM games WHERE g_id=$this->g_id";
93
					$sql="DELETE FROM games WHERE g_id=$this->g_id";
94
					break;
94
					break;
95
			}
95
			}
96
			echo $sql;
96
			return $db->query($sql);
97
		}
97
		}
98
	}
98
	}
99
?>
99
?>