Borbarad Newbie
Joined: 10 Feb 2005 Posts: 9
|
Posted: Thu Apr 14, 2005 11:02 pm
Two databases, querys on both --> crashing db |
I have one Alias:
#DBLOAD mobs
#DBRESET
data = %query( &Room=%roomkey, All)
#SHOW %crlf%roomname (%roomkey) --- Inhalt:%numitems( @data)
#SHOW ----------------------------
#IF (%numitems( %trim( @data)) <= 0) {
#show %ansi( high, white) Mob: Not found in database
#SHOW ----------------------------
} {
#FORALL @data {
#SHOWDB %dbget( %i)
#SHOW ----------------------------
}
}
The 2nd one:
#DBLOAD items
#DBRESET
data = %query( &Room=%roomkey, All)
#SHOW ---- Items....
#IF (%numitems( %trim( @data)) <= 0) {
#SHOW %crlf----------------------------
#show %ansi( high, white) Mob: Not found in database
#SHOW ----------------------------
} {
#FORALL %trim( @data) {
#SHOWDB %dbget( %i)
#SHOW -------------------
}
}
If i execute them back to back then it crushes sometimes and it throws a parse error.
Where do i have to pay intention that it does not crash? Any command missing? What solutions do you have for more than one database?
Any problems with it?
With Best Regards,
Marcel Honstraß |
|