ChrisCross
Neues Mitglied
Hallo,
ich habe ein Problem mit dem Object Operator / Pfeiloperator in PHP. Der Code sieht folgendermaßen aus:
Ich möchte nun dem Vergleich einen String hinzufügen. Das hatte ich mir so gedacht:
Das funktioniert aber leider nicht. Fehlermeldung lautet: Object of class stdClass could not be converted to string in file ...
Hat jemand eine Idee, wie ich das stattdessen lösen könnte?
Christoph
ich habe ein Problem mit dem Object Operator / Pfeiloperator in PHP. Der Code sieht folgendermaßen aus:
PHP:
if(row->Kennwort == $passwort)
{
...
Ich möchte nun dem Vergleich einen String hinzufügen. Das hatte ich mir so gedacht:
PHP:
if($key.$row->Kennwort.$datum == $passwort)
{
...
Das funktioniert aber leider nicht. Fehlermeldung lautet: Object of class stdClass could not be converted to string in file ...
Hat jemand eine Idee, wie ich das stattdessen lösen könnte?
Christoph