Subversion-Projekte lars-tiefland.inventar

Revision

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

Revision 16 Revision 19
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
	//$Id: os.class.php 16 2008-05-15 18:30:54Z lars $
3
	//$Id: os.class.php 19 2008-05-15 18:47:10Z lars $
4
 
4
 
5
	/**
5
	/**
6
	 * @package	Inventar Datenbank
6
	 * @package	Inventar Datenbank
Zeile 12... Zeile 12...
12
	{
12
	{
13
		private $id;
13
		private $id;
14
		private $name;
14
		private $name;
15
		function __construct($id=0)
15
		function __construct($id=0)
16
		{
16
		{
17
			if($os_id)
17
			if($id)
18
			{
18
			{
19
				$res=$GLOBALS["db"]->query("SELECT * FROM os WHERE id=$id");
19
				$res=$GLOBALS["db"]->query("SELECT * FROM os WHERE id=$id");
20
				$this->id=$id;
20
				$this->id=$id;
21
				$row=$res->fetchRow();
21
				$row=$res->fetchRow();
22
				$this->name=$row["name"];	
22
				$this->name=$row["name"];