Subversion-Projekte lars-tiefland.inventar

Revision

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

Revision 14 Revision 18
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
	//$Id: comp.class.php 14 2008-05-15 18:19:36Z lars $
3
	//$Id: comp.class.php 18 2008-05-15 18:41:49Z lars $
4
	
4
	
5
	/**
5
	/**
6
	 * @package	Inventar Datenbank
6
	 * @package	Inventar Datenbank
Zeile 19... Zeile 19...
19
			{
19
			{
20
				$res=$GLOBALS["db"]->query("SELECT * FROM computer WHERE id=$id");
20
				$res=$GLOBALS["db"]->query("SELECT * FROM computer WHERE id=$id");
21
				$this->id=$id;
21
				$this->id=$id;
22
				$row=$res->fetchRow();
22
				$row=$res->fetchRow();
23
				$this->name=$row["name"];	
23
				$this->name=$row["name"];	
-
 
24
				$this->os_id=$row["os_id"];
24
			}
25
			}
25
			else
26
			else
26
			{
27
			{
27
				$this->id=0;
28
				$this->id=0;
28
				$this->name='';
29
				$this->name='';