ChrisB: Vergleiche zwei Var; Notice: Trying to get property of non-objec

Beitrag lesen

Hi,

if ($q->user!=$_POST['user'])

doch ich bekomme folgende Meldung:

Notice: Trying to get property of non-object in

Also ist $q nicht das, was du erwartest, insb. kein Objekt, das irgendwelche Eigenschaften hätte.
Nutze var_dump um dir anzuschauen, was es wirklich ist. Wenn es sich um das Ergebnis eines fehlgeschlagenen Funktionsaufrufes handelt, dann ist es vermutlich schlicht false.

MfG ChrisB

--
RGB is totally confusing - I mean, at least #C0FFEE should be brown, right?