I deleted all the stored procs and tables that were included in Phail's script as maxteam said and then executed the original Database. I then got the Original columns that are supposed to be there in the Database. That part is solved.
Next, I executed your code which is posted above.
Next, You can see what the out come was (In the screenshots)
Now, when I provided a part of my server log above, I over looked the rest of it. Here's the complete log:
Code:
Load XML from memory : strings.xml(0x0037) - SUCCESS
Load XML from memory : cserror.xml(0x0037) - SUCCESS
[12/26/09 20:08:22] DBMS connected
[12/26/09 20:08:22] Command registeration completed
Inited client file list (1)
Start GambleItem Init.
GIID : 10000001
End GambleItem Init.
Start shop GItem list log.
GambleItemCount : 1.
Shop GItem : 10000001
End shop GItem list log.
=== Dump GambleItem Info. ===
Gamble item list.
Gamble item. ID(10000001), Name(Icecream), IsTimeover(0).
Send shop gamble item list.
Shop gamble item count : 1
Shop gamble item. ID(10000001), Name(Icecream).
=== Completed Dump GambleItem Info. ===
success init security.
FILE PATH : D:\ex...
MD5 Hash Value => 80 a0 4e 04 0a 8d 1c fb f8 f5 af c2 65 3d b3 7e
================================== Server configure info ==================================
[12/26/09 20:08:22] Release Date : Jul 21 2008
[12/26/09 20:08:22] X-Trap Off
[12/26/09 20:08:22] MD5 Check Off
[12/26/09 20:08:22] Loop Log Save Off
[12/26/09 20:08:22] Server Country : BRAZIL
[12/26/09 20:08:22] Command version : (57)
[12/26/09 20:08:22] Event usable state : (false)
[12/26/09 20:08:22] Load event size : (1)
[12/26/09 20:08:22] FileCRCCheckSum usable state : (false)
[12/26/09 20:08:22] FileCRC size : (1)
[12/26/09 20:08:22] Country Code Filter usalbe state : (false)
[12/26/09 20:08:22] Accept Invalied IP state : (true)
[12/26/09 20:08:22] Keeper IP : (******)
[12/26/09 20:08:22] Monitor IP : (127.0.0.1)
[12/26/09 20:08:22] Ticket use : 0
===========================================================================================
[12/26/09 20:08:22] Match Server Created (Port:****)
success to update CustomIP
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
[12/26/09 20:13:22] GARBAGE SESSION CLEANING : ClientCount=1, SessionCount=1, AgentCount=0, CommandPool=5, objHistoryCount=3
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
[12/26/09 20:18:22] GARBAGE SESSION CLEANING : ClientCount=1, SessionCount=1, AgentCount=0, CommandPool=5, objHistoryCount=3
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
[12/26/09 20:23:22] GARBAGE SESSION CLEANING : ClientCount=1, SessionCount=1, AgentCount=0, CommandPool=5, objHistoryCount=1
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
Gamble() failed! [ItemID : 10000001]
[12/26/09 20:28:22] GARBAGE SESSION CLEANING : ClientCount=1, SessionCount=1, AgentCount=0, CommandPool=7, objHistoryCount=2
[12/26/09 20:33:22] GARBAGE SESSION CLEANING : ClientCount=1, SessionCount=1, AgentCount=0, CommandPool=7, objHistoryCount=2
-----------------------EDIT---------------------------

Lol, I was being plain dumb. I entered different information in the 2 tables. It works for me. Thanks Rotana!
But, How can I have Gold and Green boxes in the shop and each giving Multiple items (Eg. The gold box gives random shotguns,swords,etc)?