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
MySQL & Symbols?
Author Message
Llirik
Journeyman
*

Posts: 118
Likes Given: 0
Likes Received: 10 in 8 posts
Joined: Feb 2015
Reputation: 0

Ignatium Game Internet-server

Post: #1
MySQL & Symbols?
How block symbols: \, " and other in DTEXTENTRY & ")" symbol. Because MySQL give error with this symbols:

[FUNCTION email]
if (<tag0.email> == 0)
tag0.changing_npc_text=Enter Your e-mail address to restore the password and more on Your character.
else
tag0.changing_npc_text=Your e-mail address: <tag0.e-mail>. You can change it.
endif
sdialog d_mailchange
return 1

[DIALOG d_mailchange]
20,50
NOMOVE
NOCLOSE
RESIZEPIC 0 0 3500 350 125
RESIZEPIC 20 83 3000 250 25
BUTTON 274 87 1154 1155 1 0 1
DHTMLGUMP 18 16 316 59 1 1 <src.tag0.changing_npc_text>
if (<src.tag0.email> == 0)
DTEXTENTRY 25 83 235 25 1161 0
else
DTEXTENTRY 25 83 235 25 1161 0 <src.tag0.e-mail>
BUTTON 306 87 1151 1152 1 0 2
endif

[DIALOG d_mailchange BUTTON]
ONBUTTON=1
if (STRMATCH("*@*", "<argtxt[0]>")) && !(STRMATCH("*"*", "<argtxt[0]>")) && !(STRMATCH("*\*", "<argtxt[0]>")) // Symbol ")" not deleted.
for x 0 <eval <serv.accounts>-1>
for y 0 <eval <serv.MaxCharsPerAccount>-1>
ref1 = <serv.account.<dlocal.x>.char.<dlocal.y>>
if (STRMATCH("<argtxt[0]>", "<ref1.tag0.e-mail>")) && (<src>!=<ref1>)
src.sysmessage @0487,,1 Этот E-mail адрес уже используется!
sdialog d_mailchange
return 1
endif
endfor
endfor
src.tag0.e-mail=<argtxt[0]>
src.sysmessage @0487,,1 Ваш e-mail адрес: <src.tag0.e-mail>. Вы можете изменить его.
src.tag0.email=1
return 1
else
src.sysmessage @0487,,1 Неверный адрес электронной почты
sdialog d_mailchange
return 1
endif

ONBUTTON=2
return 1

[EOF]

Thank you!
12-03-2016 09:47 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
MySQL & Symbols? - Llirik - 12-03-2016 09:47 PM
RE: MySQL & Symbols? - Coruja - 12-04-2016, 03:34 AM
RE: MySQL & Symbols? - Llirik - 12-05-2016, 06:09 AM
RE: MySQL & Symbols? - Coruja - 12-05-2016, 10:40 AM
RE: MySQL & Symbols? - Llirik - 12-06-2016, 12:46 AM
RE: MySQL & Symbols? - Llirik - 12-06-2016, 03:02 AM
RE: MySQL & Symbols? - Llirik - 12-06-2016, 07:56 AM
RE: MySQL & Symbols? - Coruja - 12-06-2016, 09:39 AM
RE: MySQL & Symbols? - Llirik - 12-06-2016, 09:47 AM
RE: MySQL & Symbols? - Coruja - 12-06-2016, 10:39 AM
RE: MySQL & Symbols? - Llirik - 12-06-2016, 12:00 PM

Forum Jump:


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