Subversion-Projekte lars-tiefland.inventar

Revision

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

Revision 4 Revision 5
Zeile 10... Zeile 10...
10
 
10
 
11
	class os
11
	class os
12
	{
12
	{
13
		private $id;
13
		private $id;
14
		private $name;
14
		private $name;
15
		function __construct($os_id=0)
15
		function __construct($id=0)
16
		{
16
		{
17
			if($os_id)
17
			if($os_id)
18
			{
18
			{
19
				$GLOBALS["db"]->query("SELECT * FROM os WHERE id=$os_id");
19
				$res=$GLOBALS["db"]->query("SELECT * FROM os WHERE id=$id");
20
				$this->id=$os_id;
20
				$this->id=$id;
21
				$row=$GLOBALS["db"]->fetch_assoc();
21
				$row=$res->fetchRow();
22
				$this->name=$row["name"];	
22
				$this->name=$row["name"];	
23
			}
23
			}
24
			else
24
			else
25
			{
25
			{