Hi,
habe schon google befragt und im forum gesucht aber nix gefunde, oder ich bin zu blöd was zu finde.
Ich will folgendes machen:
Und zwar möchte ich ein Objekt welches ich per erstellt habe binär in MySql ablegen.
hatte folgenden ansatz:
Code:
function writeDB() {
$Query = "INSERT INTO artikel (typ, artikel) values ('Bar', $this)";
mysql_query($Query, $dblink);
}
aber leider geht das nicht, bekomme ein
Code:
Catchable fatal error: Object of class Clothes could not be converted to string in /var/www/hp/shopsystem/artikel/clothes.class.php on line 17
zur mysql table typ ist ein varchar, sieht man ja und artikel ist ein blob.
hat einer ne idee wie ich dieses vorhaben verwirklichen kann?
mfg ich
Lesezeichen