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 16... Zeile 16...
16
 
16
 
17
		function __construct($id=0)
17
		function __construct($id=0)
18
		{
18
		{
19
			if($id)
19
			if($id)
20
			{
-
 
-
 
20
			{
-
 
21
				$res=$GLOBALS["db"]->query("SELECT * FROM hardwares WHERE id=$id");
-
 
22
				$this->id=$id;
-
 
23
				$row=$res->fetchRow();
21
				
24
				$this->name=$row["name"];	
22
			}	
25
			}	
23
			else
26
			else
24
			{
27
			{
25
				$this->id=0;
28
				$this->id=0;