The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SQL Problem...
Author Message
admin_teclis
Journeyman
*

Posts: 51
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0

Age of Apocalypse

Post: #1
SQL Problem...
Good evening,
I have a problem with a SQL query.
Use the script to create the paperdoll Avatar.
Because there is a bug, that is, every time a client connects rewrites again his skill, I made a query that checks whether it already exists and performs an UPDATE instead of rewriting.
Here lies the problem ... The query works, but instead of cycling all skills I marked all as necromancy ... and of course with its value ..
The query is this:

// Character skills UPDATE
Db.query "SELECT * FROM WHERE myrunuo_characters_skills char_id = '<eval <uid >>'
    if (<DB.ROW.NUMROWS>> 0)
for x 1 <eval <DB.ROW.NUMROWS >>
Db.Execute "UPDATE myrunuo_characters_skills September skill_id = <dlocal.x>, skill_value = << def.player_skill_ <dlocal.x >>> WHERE char_id = <eval <uid >>"
endfor
endif

Db.query "SELECT * FROM WHERE myrunuo_characters_skills char_id = '<eval <uid >>'
    if (<DB.ROW.NUMROWS> == 0)
// Insert Character Skills
for 1 x 49
db.query insert into myrunuo_characters_skills (char_id, skill_id, skill_value) VALUES ('<eval <uid >>', '<dlocal.x>', '<< def.player_skill_ <dlocal.x >>>')
endfor
endif
09-12-2015 12:33 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
SQL Problem... - admin_teclis - 09-12-2015 12:33 AM
RE: SQL Problem... - azmanomer - 09-12-2015, 12:54 AM
RE: SQL Problem... - admin_teclis - 09-12-2015, 01:57 AM
RE: SQL Problem... - Coruja - 09-12-2015, 03:29 AM
RE: SQL Problem... - admin_teclis - 09-17-2015, 08:12 AM
RE: SQL Problem... - Artyk - 09-17-2015, 05:44 PM
RE: SQL Problem... - Extreme - 09-17-2015, 12:15 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)