Insert Data to MSSQL Database |
(07-07-2021, 08:13 PM)php_rocs Wrote: @waraywarayako , Hello Sir, No errors logs. I was able to fix it but the problem no data has been save into MSSQL Database but the success message has been displayed. PHP Code: $this->form_validation->set_rules('username', 'Username', 'required|alpha_numeric|callback_username_check|min_length[4]|max_length[12]|xss_clean'); (07-08-2021, 02:14 AM)qury Wrote: have you tried using $this->db->insert_id() instead of trying to get the id using SCOPE_IDENTITY()? that codes came for SQLSRV Drivers. I`ve already tried insert_id() but didn`t work. (07-07-2021, 08:13 PM)php_rocs Wrote: @waraywarayako , PHP Code: <?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> |
Messages In This Thread |
Insert Data to MSSQL Database - by waraywarayako - 07-07-2021, 06:05 AM
RE: Insert Data to MSSQL Database - by php_rocs - 07-07-2021, 06:36 AM
RE: Insert Data to MSSQL Database - by waraywarayako - 07-07-2021, 01:38 PM
RE: Insert Data to MSSQL Database - by php_rocs - 07-07-2021, 08:13 PM
RE: Insert Data to MSSQL Database - by waraywarayako - 07-08-2021, 03:26 AM
RE: Insert Data to MSSQL Database - by qury - 07-08-2021, 02:14 AM
|