class MinKlasse
{
public $primary_key = 0;
public $kolonne1 = 2;
public function lagre() {
mylsql("REPLACE INTO tabell (primary_key, kolonne1) VALUES(".$this->primary_key .",". $this->kolonne1.")");
}
public function lese() {
$r = mysql_query("SELECT * FROM tabell WHERE primary_key = ".$this->primary_key);
$obj = $mysql_fetch_obj($r);
$this->kolonne1 = $obj->kolonne1;
}
}
Registrerte brukere: Google [Bot]