|
From: FlorinCB <ory...@us...> - 2009-02-03 22:31:22
|
Update of /cvsroot/mxbb/mx_pafiledb/pafiledb/includes In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22989/pafiledb/includes Modified Files: functions_pafiledb.php Log Message: ALTER TABLE mx_pa_cat CHANGE cat_last_file_name cat_last_file_name varchar(255) DEFAULT '' NOT NULL; Index: functions_pafiledb.php =================================================================== RCS file: /cvsroot/mxbb/mx_pafiledb/pafiledb/includes/functions_pafiledb.php,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** functions_pafiledb.php 23 Jan 2009 21:16:29 -0000 1.60 --- functions_pafiledb.php 3 Feb 2009 22:31:14 -0000 1.61 *************** *** 212,216 **** --- 212,230 ---- cat_last_file_time = '0' WHERE cat_id = '" . $cat_id . "'"; + + /* + //This is for later implementation + + $cat_data = array( + 'cat_files' => (int) 1, + 'cat_last_file_id' => (int) 0, + 'cat_last_file_time'=> (int) 0, + ); + $sql = "UPDATE " . PA_CATEGORY_TABLE . " + SET " . $db->sql_build_array('UPDATE', $cat_data) . " + WHERE cat_id = '" . $cat_id . "'"; + */ + if ( !( $db->sql_query( $sql ) ) ) { |