I have nearly completed the code for transferring patients registered
on Care2x to KwaMoja/webERP via the api. However I have hit a problem
whereby the $db->Insert_ID() function is not returning the pid for the
last patient input. This is in the file
include/care_api_classes/class_gui_input_person.php script.

I have been looking into this for a few days and not got very far.
However something else came up that may or may not be causing the
problem. The mysql extension of PHP has been deprecated and we should
now use mysqli instead. I changed the $dbtype in inc_init_main.php to
be mysqli and care2x uses the correct ADODB functions, no problem.
However there are a number of entries in the code such as:

if ($dbtype='mysql') {
   // do some mysql specific code
} else {
   // do some postrgres specific code
}

So my question is should this be changed to:

if ($dbtype='mysqli') {
   // do some mysqli specific code
} else {
   // do some postrgres specific code
}

or

if ($dbtype='mysql') {
   // do some mysql specific code
} elseif ($dbtype='mysqli') {
   // do some mysqli specific code
} else {
   // do some postrgres specific code
}

Any thoughts on the last insert issue also welcomed :)

Thanks
Tim

-- 
Course View Towers,
Plot 21 Yusuf Lule Road,
Kampala
T   +256 (0) 312 314 418
M +256 (0) 752 963 325
www.weberpafrica.com
@TimSchofield2
Blog: http://weberpafrica.blogspot.co.uk/

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to