MYSQL Bat Erros !

Results 1 to 10 of 10
  1. #1
    Valued Member xMango is offline
    MemberRank
    Feb 2012 Join Date
    SabahLocation
    135Posts

    MYSQL Bat Erros !

    So , i Just adding occupations to my server . But when i log in into my server .
    It has this error ? :

    PHP Code:
    java.sql.SQLExceptionNo value specified for parameter 61
            at com
    .mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
            
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
            
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
            
    at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
    a
    :2176)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1993)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1937)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1922)
            
    at client.MapleCharacter.saveToDB(MapleCharacter.java:4450)
            
    at client.MapleCharacter$13.run(MapleCharacter.java:5446)
            
    at server.TimerManager$LoggingSaveRunnable.run(TimerManager.java:115)
            
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
            
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)

            
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
            
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
    access$301(Unknown Source)
            
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.
    run(Unknown Source)
            
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            
    at java.lang.Thread.run(Unknown Source)
    java.sql.SQLExceptionNo value specified for parameter 61
            at com
    .mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
            
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
            
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926)
            
    at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.jav
    a
    :2176)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1993)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1937)
            
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java
    :1922)
            
    at client.MapleCharacter.saveToDB(MapleCharacter.java:4450)
            
    at client.MapleClient.disconnect(MapleClient.java:635)
            
    at net.MapleServerHandler.sessionClosed(MapleServerHandler.java:104)
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.sessionClosed(DefaultIoFilterChain.java:662)


            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSession
    Closed
    (DefaultIoFilterChain.java:386)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(Defa
    ultIoFilterChain
    .java:51)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.ses
    sionClosed
    (DefaultIoFilterChain.java:797)
            
    at org.apache.mina.filter.codec.ProtocolCodecFilter.sessionClosed(Protoc
    olCodecFilter
    .java:317)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSession
    Closed
    (DefaultIoFilterChain.java:386)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$900(Defa
    ultIoFilterChain
    .java:51)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.ses
    sionClosed
    (DefaultIoFilterChain.java:797)
            
    at org.apache.mina.core.filterchain.IoFilterAdapter.sessionClosed(IoFilt
    erAdapter
    .java:95)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextSession
    Closed
    (DefaultIoFilterChain.java:386)
            
    at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireSessionClos
    ed
    (DefaultIoFilterChain.java:379)
            
    at org.apache.mina.core.service.IoServiceListenerSupport.fireSessionDest
    royed
    (IoServiceListenerSupport.java:210)
            
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeNow(Abs
    tractPollingIoProcessor
    .java:535)
            
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.removeSession
    s
    (AbstractPollingIoProcessor.java:497)
            
    at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(Ab
    stractPollingIoProcessor
    .java:61)
            
    at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run
    (AbstractPollingIoProcessor.java:974)
            
    at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnabl
    e
    .java:64)
            
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
            
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            
    at java.lang.Thread.run(Unknown Source


    Here's my SaveToDB :
    PHP Code:
    public void saveToDB(boolean update) {
            
    Connection con DatabaseConnection.getConnection();
            try {
                
    con.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
                
    con.setAutoCommit(false);
                
    PreparedStatement ps;
                if (
    update) {
                    
    ps con.prepareStatement("UPDATE characters SET level = ?, fame = ?, str = ?, dex = ?, luk = ?, `int` = ?, exp = ?, hp = ?, mp = ?, maxhp = ?, maxmp = ?, sp = ?, ap = ?, gm = ?, skincolor = ?, gender = ?, job = ?, hair = ?, face = ?, map = ?, meso = ?, hpMpUsed = ?, spawnpoint = ?, party = ?, buddyCapacity = ?, messengerid = ?, messengerposition = ?, reborns = ?, mountlevel = ?, mountexp = ?, mounttiredness= ?, equipslots = ?, useslots = ?, setupslots = ?, etcslots = ?,  monsterbookcover = ?, watchedcygnusintro = ?, vanquisherStage = ?, dojoPoints = ?, lastDojoStage = ?, finishedDojoTutorial = ?, vanquisherKills = ?, matchcardwins = ?, matchcardlosses = ?, matchcardties = ?, omokwins = ?, omoklosses = ?, omokties = ?, givenRiceCakes = ?, partyquestitems = ?, receivedMOTB = ?, votepoints = ?, pvpkills = ?, pvpdeaths = ?, donatorpoints = ?, clan = ?, jailtime = ?, heavenpoints = ?, hellpoints = ?, occupation = ? WHERE id = ?");
                } else {
                    
    ps con.prepareStatement("INSERT INTO characters (level, fame, str, dex, luk, `int`, exp, hp, mp, maxhp, maxmp, sp, ap, gm, skincolor, gender, job, hair, face, map, meso, hpMpUsed, spawnpoint, party, buddyCapacity, messengerid, messengerposition, reborns, mountlevel, mounttiredness, mountexp, equipslots, useslots, setupslots, etcslots, monsterbookcover, watchedcygnusintro, vanquisherStage, dojopoints, lastDojoStage, finishedDojoTutorial, vanquisherKills, matchcardwins, matchcardlosses, matchcardties, omokwins, omoklosses, omokties, givenRiceCakes, partyquestitems, accountid, name, world, votepoints, pvpkills, pvpdeaths, donatorpoints, clan, jailtime, heavenpoints, hellpoints, occupation) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?");
                }
                if (
    gmLevel && level 199) {
                    
    ps.setInt(1isCygnus() ? 200 200);
                } else {
                    
    ps.setInt(1level);
                }
                
    ps.setInt(2fame);
                
    ps.setInt(3str);
                
    ps.setInt(4dex);
                
    ps.setInt(5luk);
                
    ps.setInt(6int_);
                
    ps.setInt(7exp.get());
                
    ps.setInt(8hp);
                
    ps.setInt(9mp);
                
    ps.setInt(10maxhp);
                
    ps.setInt(11maxmp);
                
    ps.setInt(12remainingSp);
                
    ps.setInt(13remainingAp);
                
    ps.setInt(14gmLevel);
                
    ps.setInt(15skinColor.getId());
                
    ps.setInt(16gender);
                
    ps.setInt(17job.getId());
                
    ps.setInt(18hair);
                
    ps.setInt(19face);
                if ((
    map == null) && (mapid == -1)) { //ie no data for map (shouldn't happen)
                    
    ps.setInt(200);
                } else if (
    map == null)//ie mapid set at createchar
                
    {
                    
    ps.setInt(20mapid);
                } else if (
    map.getForcedReturnId() != 999999999) {
                    
    ps.setInt(20map.getForcedReturnId());
                } else {
                    
    ps.setInt(20map.getId());
                }
                
    ps.setInt(21meso.get());
                
    ps.setInt(22hpMpApUsed);
                if (
    map == null || map.getId() == 610020000 || map.getId() == 610020001) {
                    
    ps.setInt(230);
                } else {
                    
    MaplePortal closest map.findClosestSpawnpoint(getPosition());
                    if (
    closest != null) {
                        
    ps.setInt(23closest.getId());
                    } else {
                        
    ps.setInt(230);
                    }
                }
                
    ps.setInt(24party != null party.getId() : -1);
                
    ps.setInt(25buddylist.getCapacity());
                if (
    messenger != null) {
                    
    ps.setInt(26messenger.getId());
                    
    ps.setInt(27messengerposition);
                    
    ps.setInt(28reborns);
                } else {
                    
    ps.setInt(260);
                    
    ps.setInt(274);
                    
    ps.setInt(28reborns);
                }
                if (
    maplemount != null) {
                    
    ps.setInt(29maplemount.getLevel());
                    
    ps.setInt(30maplemount.getExp());
                    
    ps.setInt(31maplemount.getTiredness());
                } else {
                    
    ps.setInt(291);
                    
    ps.setInt(300);
                    
    ps.setInt(310);
                }
                for (
    int i 3236i++) {
                    
    ps.setInt(igetInventory(MapleInventoryType.getByType((byte) (30))).getSlotLimit());
                }
                if (
    update) {
                    
    monsterbook.saveCards(getId());
                    try {
                        
    getFamily().save();
                    } catch (
    NullPointerException npe) {
                    }
                }
                
    ps.setInt(36bookCover);
                
    ps.setInt(37watchedCygnusIntro 0);
                
    ps.setInt(38vanquisherStage);
                
    ps.setInt(39dojoPoints);
                
    ps.setInt(40dojoStage);
                
    ps.setInt(41finishedDojoTutorial 0);
                
    ps.setInt(42vanquisherKills);
                
    ps.setInt(43matchcardwins);
                
    ps.setInt(44matchcardlosses);
                
    ps.setInt(45matchcardties);
                
    ps.setInt(46omokwins);
                
    ps.setInt(47omoklosses);
                
    ps.setInt(48omokties);
                
    //*ps.setInt(49, occupation.getId());
                
    ps.setInt(49givenRiceCakes);
                
    ps.setString(50partyquestitems);
                if (
    update) {
                
    ps.setInt(51receivedMOTB 0);
                
    ps.setInt(52votepoints);
                
    ps.setInt(53pvpkills);
                
    ps.setInt(54pvpdeaths);
                
    ps.setInt(55donatorpoints);
                
    ps.setInt(56clan);
                
    ps.setInt(57jailtime);
                
    ps.setInt(58heavenpoints);
                
    ps.setInt(59hellpoints);
                
    ps.setInt(60id);
               } else {
                
    ps.setInt(51accountid);
                
    ps.setString(52name);
                
    ps.setInt(53world);
                    
    ps.setInt(54votepoints);
                    
    ps.setInt(55pvpkills);
                    
    ps.setInt(56pvpdeaths);
                    
    ps.setInt(57donatorpoints);
                    
    ps.setInt(58clan);
                    
    ps.setInt(59jailtime);
                    
    ps.setInt(60heavenpoints);
                    
    ps.setInt(61hellpoints);
                    
    ps.setInt(62occupation.getId());
                }
                
    int updateRows ps.executeUpdate();
                if (!
    update) {
                    
    ResultSet rs ps.getGeneratedKeys();
                    if (
    rs.next()) {
                        
    this.id rs.getInt(1);
                    } else {
                        throw new 
    RuntimeException("Inserting char failed.");
                    }
                    
    rs.close();
                } else if (
    updateRows 1) {
                    throw new 
    RuntimeException("Character not in database (" id ")");
                }
                for (
    int i 03i++) {
                    if (
    pets[i] != null) {
                        
    pets[i].saveToDb();
                    }
                }
                
    ps.close();
                
    deleteWhereCharacterId(con"DELETE FROM keymap WHERE characterid = ?");
                
    /*            ps = con.prepaffreStatement("INSERT INTO keymap (characterid, `key`, `type`, `action`) VALUES (?, ?, ?, ?)");
                ps.setInt(1, id);
                for (Entry<Integer, MapleKeyBinding> keybinding : keymap.entrySet()) {
                ps.setInt(2, keybinding.getKey().intValue());
                ps.setInt(3, keybinding.getValue().getType());
                ps.setInt(4, keybinding.getValue().getAction());
                ps.addBatch();
                }
                ps.executeBatch();*/
                
    if (!keymap.isEmpty()) {
                    
    ps con.prepareStatement(prepareKeymapQuery());
                    
    ps.executeUpdate();
                    
    ps.close();
                }

                
    deleteWhereCharacterId(con"DELETE FROM skillmacros WHERE characterid = ?");
                
    ps con.prepareStatement("INSERT INTO skillmacros (characterid, skill1, skill2, skill3, name, shout, position) VALUES (?, ?, ?, ?, ?, ?, ?)");
                
    ps.setInt(1getId());
                for (
    int i 05i++) {
                    
    SkillMacro macro skillMacros[i];
                    if (
    macro != null) {
                        
    ps.setInt(2macro.getSkill1());
                        
    ps.setInt(3macro.getSkill2());
                        
    ps.setInt(4macro.getSkill3());
                        
    ps.setString(5macro.getName());
                        
    ps.setInt(6macro.getShout());
                        
    ps.setInt(7i);
                        
    ps.addBatch();
                    }
                }
                
    ps.executeBatch();
                
    ps.close();
                
    deleteWhereCharacterId(con"DELETE FROM telerockmaps WHERE characterId = ?");
                
    ps con.prepareStatement("INSERT into telerockmaps (characterId, mapId, type) VALUES (?, ?, ?)");
                
    ps.setInt(1id);
                for (
    int mapId rockMaps) {
                    
    ps.setInt(2mapId);
                    
    ps.setInt(30);
                    
    ps.addBatch();
                }
                for (
    int mapId vipRockMaps) {
                    
    ps.setInt(2mapId);
                    
    ps.setInt(31);
                    
    ps.addBatch();
                }
                
    ps.executeBatch();
                
    ps.close();
                List<
    Pair<IItemMapleInventoryType>> itemsWithType = new ArrayList<Pair<IItemMapleInventoryType>>();

                for (
    MapleInventory iv inventory) {
                    for (
    IItem item iv.list()) {
                        
    itemsWithType.add(new Pair<IItemMapleInventoryType>(itemiv.getType()));
                    }
                }

                
    ItemFactory.INVENTORY.saveItems(itemsWithTypeid);
                
    deleteWhereCharacterId(con"DELETE FROM skills WHERE characterid = ?");
                    
    ps con.prepareStatement("INSERT INTO skills (characterid, skillid, skilllevel, masterlevel) VALUES (?, ?, ?, ?)");
                
    ps.setInt(1id);
                for (
    Entry<ISkillMapleCharacter.SkillEntryskill skills.entrySet()) {
                
    ps.setInt(2skill.getKey().getId());
                
    ps.setInt(3skill.getValue().skillevel);
                
    ps.setInt(4skill.getValue().masterlevel);
                
    ps.addBatch();
                }
                
    ps.executeBatch();
                if (!
    skills.isEmpty()) {
                    
    ps con.prepareStatement(prepareSkillQuery());
                    
    ps.executeUpdate();
                    
    ps.close();
                }
                
    deleteWhereCharacterId(con"DELETE FROM savedlocations WHERE characterid = ?");
                
    ps con.prepareStatement("INSERT INTO savedlocations (characterid, `locationtype`, `map`, `portal`) VALUES (?, ?, ?, ?)");
                
    ps.setInt(1id);
                for (
    SavedLocationType savedLocationType SavedLocationType.values()) {
                    if (
    savedLocations[savedLocationType.ordinal()] != null) {
                        
    ps.setString(2savedLocationType.name());
                        
    ps.setInt(3savedLocations[savedLocationType.ordinal()].getMapId());
                        
    ps.setInt(4savedLocations[savedLocationType.ordinal()].getPortal());
                        
    ps.addBatch();
                    }
                }
                
    ps.executeBatch();
                
    ps.close();
                
    deleteWhereCharacterId(con"DELETE FROM buddies WHERE characterid = ? AND pending = 0");
                
    ps con.prepareStatement("INSERT INTO buddies (characterid, `buddyid`, `pending`, `group`) VALUES (?, ?, 0, ?)");
                
    ps.setInt(1id);
                for (
    BuddylistEntry entry buddylist.getBuddies()) {
                    if (
    entry.isVisible()) {
                        
    ps.setInt(2entry.getCharacterId());
                        
    ps.setString(3entry.getGroup());
                        
    ps.addBatch();
                    }
                }
                
    ps.executeBatch();
                
    ps.close();
                
    deleteWhereCharacterId(con"DELETE FROM queststatus WHERE characterid = ?");
                
    ps con.prepareStatement("INSERT INTO queststatus (`queststatusid`, `characterid`, `quest`, `status`, `time`, `forfeited`) VALUES (DEFAULT, ?, ?, ?, ?, ?)"Statement.RETURN_GENERATED_KEYS);
                
    PreparedStatement pse con.prepareStatement("INSERT INTO queststatusmobs VALUES (DEFAULT, ?, ?, ?)");
                
    ps.setInt(1id);
                for (
    MapleQuestStatus q quests.values()) {
                    
    ps.setInt(2q.getQuest().getId());
                    
    ps.setInt(3q.getStatus().getId());
                    
    ps.setInt(4, (int) (q.getCompletionTime() / 1000));
                    
    ps.setInt(5q.getForfeited());
                    
    ps.executeUpdate();
                    
    ResultSet rs ps.getGeneratedKeys();
                    
    rs.next();
                    for (
    int mob q.getMobKills().keySet()) {
                        
    pse.setInt(1rs.getInt(1));
                        
    pse.setInt(2mob);
                        
    pse.setInt(3q.getMobKills(mob));
                        
    pse.addBatch();
                    }
                    
    pse.executeBatch();
                    
    rs.close();
                }
                
    pse.close();
                
    ps.close();
                
    ps con.prepareStatement("UPDATE accounts SET `paypalNX` = ?, `mPoints` = ?, `cardNX` = ?, gm = ?, points = ?, `votepoints` = ? WHERE id = ?");
                
    ps.setInt(1paypalnx);
                
    ps.setInt(2maplepoints);
                
    ps.setInt(3cardnx);
                
    ps.setInt(4gmLevel);
                
    ps.setInt(5points);
                
    ps.setInt(6votepoints);            
                
    ps.setInt(7client.getAccID());
                
    ps.executeUpdate();
                
    ps.close();
                if (
    storage != null) {
                    
    storage.saveToDB();
                }
                
    ps con.prepareStatement("DELETE FROM wishlist WHERE `charid` = ?");
                
    ps.setInt(1id);
                
    ps.executeUpdate();
                
    ps.close();
                
    ps con.prepareStatement("INSERT INTO wishlist(`sn`, `charid`) VALUES(?, ?)");
                for (
    int sn wishList) {
                    
    ps.setInt(1sn);
                    
    ps.setInt(2id);
                    
    ps.addBatch();
                }
                
    ps.executeBatch();
                
    ps.close();
                if (
    gmLevel 0) {
                    
    ps con.prepareStatement("INSERT INTO gmlog (`cid`, `command`) VALUES (?, ?)");
                    
    ps.setInt(1id);
                    for (
    String com commands) {
                        
    ps.setString(2com);
                        
    ps.addBatch();
                    }
                    
    ps.executeBatch();
                }
                
    ps.close();
                
    con.commit();
                
    ps null;
            } catch (
    Exception e) {
                
    e.printStackTrace();
                try {
                    
    con.rollback();
                } catch (
    SQLException se) {
                }
            } finally {
                try {
                    
    con.setAutoCommit(true);
                    
    con.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ);
                } catch (
    Exception e) {
                }
            }
        } 


  2. #2
    Valued Member AngryPepe is offline
    MemberRank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: SQL Error .

    I'll give you a clue:
    PHP Code:
    No value specified for parameter 61 
    O_o

  3. #3
    Valued Member xMango is offline
    MemberRank
    Feb 2012 Join Date
    SabahLocation
    135Posts

    Re: SQL Error .

    i Know , But i forgot how to fix that .
    i Rmb , last time i also got fix same as like this probelm . But i forgot .
    Anyone people helping this probelm ? Thanks you .

  4. #4
    I have an ass and a hat. maplefreak26 is offline
    MemberRank
    Sep 2008 Join Date
    1,098Posts

    Re: SQL Error .

    Hint:
    PHP Code:
                if (update) {
                
    ps.setInt(51receivedMOTB 0);
                
    ps.setInt(52votepoints);
                
    ps.setInt(53pvpkills);
                
    ps.setInt(54pvpdeaths);
                
    ps.setInt(55donatorpoints);
                
    ps.setInt(56clan);
                
    ps.setInt(57jailtime);
                
    ps.setInt(58heavenpoints);
                
    ps.setInt(59hellpoints);
                
    ps.setInt(60id);
               } else { 

  5. #5
    Valued Member AngryPepe is offline
    MemberRank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: SQL Error .

    PHP Code:
                ps.setInt(51receivedMOTB 0);
                
    ps.setInt(52votepoints);
                
    ps.setInt(53pvpkills);
                
    ps.setInt(54pvpdeaths);
                
    ps.setInt(55donatorpoints);
                
    ps.setInt(56clan);
                
    ps.setInt(57jailtime);
                
    ps.setInt(58heavenpoints);
                
    ps.setInt(59hellpoints);
                
    ps.setInt(60id); 
    Where is 61?

  6. #6
    Account Upgraded | Title Enabled! Yaseen is offline
    MemberRank
    Nov 2011 Join Date
    /index.phpLocation
    430Posts

    Re: SQL Error .

    Quote Originally Posted by AngryPepe View Post
    PHP Code:
                ps.setInt(51receivedMOTB 0);
                
    ps.setInt(52votepoints);
                
    ps.setInt(53pvpkills);
                
    ps.setInt(54pvpdeaths);
                
    ps.setInt(55donatorpoints);
                
    ps.setInt(56clan);
                
    ps.setInt(57jailtime);
                
    ps.setInt(58heavenpoints);
                
    ps.setInt(59hellpoints);
                
    ps.setInt(60id); 
    Where is 61?
    That's the point. There's no 61, and there are 61 ?s in the INSERT statement.

  7. #7
    Valued Member xMango is offline
    MemberRank
    Feb 2012 Join Date
    SabahLocation
    135Posts

    Re: SQL Error .

    Quote Originally Posted by AngryPepe View Post
    PHP Code:
                ps.setInt(51receivedMOTB 0);
                
    ps.setInt(52votepoints);
                
    ps.setInt(53pvpkills);
                
    ps.setInt(54pvpdeaths);
                
    ps.setInt(55donatorpoints);
                
    ps.setInt(56clan);
                
    ps.setInt(57jailtime);
                
    ps.setInt(58heavenpoints);
                
    ps.setInt(59hellpoints);
                
    ps.setInt(60id); 
    Where is 61?
    PHP Code:
    ps.setInt(54votepoints);
                    
    ps.setInt(55pvpkills);
                    
    ps.setInt(56pvpdeaths);
                    
    ps.setInt(57donatorpoints);
                    
    ps.setInt(58clan);
                    
    ps.setInt(59jailtime);
                    
    ps.setInt(60heavenpoints);
                    
    ps.setInt(61hellpoints);
                    
    ps.setInt(62occupation.getId()); 

  8. #8
    Valued Member AngryPepe is offline
    MemberRank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: SQL Error .

    Quote Originally Posted by Yaseen View Post
    That's the point. There's no 61, and there are 61 ?s in the INSERT statement.
    It's called giving him a hint about what's wrong in the script -.-
    I tried to help him (?) ....

  9. #9
    Valued Member xMango is offline
    MemberRank
    Feb 2012 Join Date
    SabahLocation
    135Posts

    Re: SQL Error .

    Bumb , Anyone help ?

  10. #10
    Valued Member AngryPepe is offline
    MemberRank
    Apr 2012 Join Date
    IsraelLocation
    117Posts

    Re: MYSQL Bat Erros !

    We already helped you 0.0
    You need to add 61



Advertisement