Quantcast
Channel: XOOPS Web Application System :: Forum
Viewing all articles
Browse latest Browse all 141

Re: Inserting multiple rows in database table [by timgno]

$
0
0
Xoops Development::Inserting multiple rows in database table
Thank you Mamba

I will do so because I think that the data is not sent from the file tables.php

Code of case 'save':
if( $tablesHandler->insert($obj) ) {     
            if( 
$obj->isNew() ) { 
                
$table_iid $GLOBALS['xoopsDB']->getInsertId();    
                
$table_action '&field_mid='.$table_mid.'&field_tid='.$table_iid.'&field_numb='.$table_nbfields.'&field_name='.$table_fieldname;        
                
redirect_header('fields.php?op=new'.$table_action5sprintf(_AM_TDMCREATE_TABLE_FORM_SAVED_OK$_POST['table_name']));
            } else {
                
redirect_header('tables.php'5sprintf(_AM_TDMCREATE_TABLE_FORM_UPDATED_OK$_POST['table_name']));
   &nbs...

Viewing all articles
Browse latest Browse all 141

Trending Articles