Cannot use [] for reading

lena

New Member
In one of my scripts, I try to do the following\[code\]$data[] = self::get($row['sr_id']); // <-- line 55\[/code\]However, PHP does not allow me to do this, giving me this error\[code\]Fatal error: Cannot use [] for reading in /file.php on line 55\[/code\]The \[code\]self::get\[/code\] function return either a bool, or an object.Edit: The get function creates a new object which again loads data from a mysql database.
 
Back
Top