MySQL problem
#2

Strings need a null terminator else you will run into all sorts of problems. Means the sizes of your strings need to be at least 12 and 6 chars long, respectively. Also use sizeof instead of inserting the size literally. Sizeof is an operator, not a function, and has no impact on performance. Furthermore, instead of calling random(9) over and over again you can just do this:

PHP код:
format(bankszamlasizeof(bankszamla), "%03d-%03d-%03d"random(1000), random(1000), random(1000)); 
PHP код:
format(bankjelszosizeof(bankjelszo), "%05d"random(100000)); 
Reply


Messages In This Thread
MySQL problem - by Ripster - 02.01.2017, 16:15
Re: MySQL problem - by Vince - 02.01.2017, 16:22
Re: MySQL problem - by Ripster - 02.01.2017, 17:38

Forum Jump:


Users browsing this thread: 2 Guest(s)