This is a discussion on "OO PHP error" within the PHP Forum section. This forum, and the thread "OO PHP error are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
OO PHP error
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
OO PHP error
hello. I've written a PHP OO script that uses the class user and admin (admin is extended of user).
I can functions as an admin from the user class but the functions the functions in the admin class return this error: "Fatal error: Call to undefined method User::getAdmin() in C:\Filespace\Testsite\class.php on line 96" which would leave me to assume that i have written a function called getAdmin, but i have. Could someone check this code for me when they have the spare time? Sorry it's a lot.
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Last edited by alexgeek; Aug 28th, 2007 at 13:29. |
|
|
|
|||
|
Re: OO PHP error
Hi
I didn't go through the code in detail, but the first thing that strikes is that you use the classes User and Admin before they are defined in the script. I suspect a second error in the following lines
Hope that helps |
|
||||
|
Re: OO PHP error
works perfectly now
thanks for spotting that reps you *
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
![]() |
| Tags |
| php, classes, class |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. | VegaLA | Classic ASP | 3 | Jan 26th, 2008 00:12 |
| Keep getting error message Microsoft VBScript runtime error '800a01a8' | cpando1974 | Classic ASP | 2 | Aug 7th, 2007 12:00 |
| Error 500 - Internal server error | JasonStanley | PHP Forum | 3 | Apr 23rd, 2007 17:56 |