RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-28 Thread Matt Williams
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > I have a function that works perfectly (from within a script). But > when I make it a class (object) and call it from an external file, > I get the following error: > > Warning: Missing argument 1 for display_records() in > http://www.fr

RE: [PHP] Missing arguments for function in class? (object-orientedprogramming)

2001-06-29 Thread scott [gts]
rename either the function or the class. class Display_Records { function display_records($row, $record_count) { $current_date = (date("Y-m-d")); $age = ($current_date); return $age; } function disp_rec($row, $record_count)