New field in table

Discuss everything related to Medical Appointment. All versions. Any questions related to the Medical Appointment developing or using should be posted to this forum.

Moderators: alexandrleonenko, Milton

esanmar
Newbie
Newbie
Posts: 2
Joined: Nov 28th, '12, 22:20

New field in table

Postby esanmar » Nov 28th, '12, 22:37

Hi,
I have added a new field in the doctors table.
Y have added the code in the doctors class:

Code: Select all

if(isset($_POST['newfield']))    $this->params['newfield']    = prepare_input($_POST['newfield']);

'separator_profile_info' => array(
            'separator_info' => array('legend'=>_PROFILE_DETAILS),
            ...
            'newfield'   => array('title'=>_ACCOUNT_INFO, 'type'=>'textbox',  'width'=>'210px', 'required'=>false, 'readonly'=>false, 'maxlength'=>'32', 'default'=>'', 'validation_type'=>'', 'unique'=>false, 'visible'=>true),


But when I update the doctos profile details, it shows this error:

An error occurred while executing. Please try again later!

No messages in error.log of Apache, I also try settings.php $tabs->Debug(true), but no extra info.
Anu ideas?

Thanks in advance

administrator
Site Admin
Site Admin
Posts: 6067
Joined: Jan 7th, '09, 23:18
Contact:

Re: New field in table

Postby administrator » Nov 29th, '12, 11:06

go to include/classes/doctors.class.php file and turn there debug mode to ON

Code: Select all

protected $debug = true;


then try to see what error you get from the database.


Return to “ApPHP Medical Appointment / uDoctorAppointment Talk {developers/users}”