All pastes #99493 Raw Edit

Someone

public text v1 · immutable
#99493 ·published 2006-07-25 11:29 UTC
rendered paste body
                $query = sprintf("SELECT * FROM %s WHERE 'project_id'=%s",
                 mysql_real_escape_string( $project_id_tables[$i] ),
                 mysql_real_escape_string( $project_id ) );
                $result = db_query( $query );

                $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
                foreach($result as $k => $row) {
                        print("<br>die row was ");
                        print_r_br($row);
                        foreach($row as $key => $value) {
                                if(is_numeric($key)) {
                                        unset($row[$key]);
                                }
                        }
                        $row["project_id"] =  $row["project_id"]++;
                        if($insertSQL = $g_db2->AutoExecute($project_id_tables[$i], $row, 'INSERT')) {
                                print("AutoExecute worked<br>");
                        } else {
                                print("AutoExecute failed<br>");
                        }