Columns in tenant_profiles table:
- id (int(11))
- user_id (int(11))
- date_of_birth (date)
- gender (enum('male','female','other'))
- occupation (varchar(100))
- emergency_contact_name (varchar(100))
- emergency_contact_phone (varchar(20))
- emergency_contact_relationship (varchar(50))
- address (text)
- preferred_location (varchar(255))
- preferred_room_type (varchar(50))
- preferred_price_min (decimal(10,2))
- preferred_price_max (decimal(10,2))
- preferred_amenities (text)
- tenant_score (int(11))
- has_active_booking (tinyint(1))
- current_room_id (int(11))
Has 'created_at' column: NO ✗ Has 'updated_at' column: NO ✗ Has 'address' column: NO ✗
Good: The table structure matches the expected schema (no created_at, updated_at, or address columns).
Available methods in Database class: - connect() - close() - query() - getRow() - getRows() - insert() - update() - delete() - count() - beginTransaction() - commit() - rollback() - getLastError()
✓ Database class has 'getRows()' method
✓ Database class does NOT have 'getAll()' method (as expected)
Status: The following files have been fixed:
api/update_profile.php - Removed references to 'address', 'created_at', and 'updated_at' columnsapi/update_preferences.php - Removed references to 'created_at' and 'updated_at' columnspages/account.php - Removed 'address' field from the formincludes/TenantMatcher.php - Changed all 'getAll()' calls to 'getRows()'Next Steps: