Insert into database \t \n
#2

Write arbitrary data to the database you can be achieved by simple conversion:
PHP Code:
//Save example:
new tmpInput[256], tmpOutput[256 2];
format(tmpInput,sizeof tmpInput,"sdnajnda\n\tćłśą ...");
StringToHexString(tmpInput,tmpOutput);
//tmpOutput = "73646E616A6E64615C6E5C74E6B39CB9202E2E2E" - save this
//Load example:
new tmp_data[256], tmp_hexdata[256 2];
tmp_hexdata "73646E616A6E64615C6E5C74E6B39CB9202E2E2E";
HexStringToString(tmp_hexdata,tmp_data);
//tmp_data = "sdnajnda\n\tćłśą ..." 
Output data StringToHexString is two times greater than the input data.

Include:
ADM.inc
Reply


Messages In This Thread
Insert into database \t \n - by MerryDeer - 14.07.2016, 07:44
Re: Insert into database \t \n - by AbyssMorgan - 14.07.2016, 07:53
Re: Insert into database \t \n - by Vince - 14.07.2016, 08:11
Re: Insert into database \t \n - by MerryDeer - 29.08.2016, 16:53
Re: Insert into database \t \n - by AbyssMorgan - 29.08.2016, 17:02
Re: Insert into database \t \n - by MerryDeer - 29.08.2016, 17:11
Re: Insert into database \t \n - by Stinged - 29.08.2016, 17:19
Re: Insert into database \t \n - by MerryDeer - 29.08.2016, 17:26
Re: Insert into database \t \n - by BlackBank - 29.08.2016, 17:44
Re: Insert into database \t \n - by Stinged - 29.08.2016, 18:14

Forum Jump:


Users browsing this thread: 1 Guest(s)