17.07.2011, 09:36
Quote:
Oh, yeah, my bad. The error is actually because you don't have brackets around your sizeof function .
|
So you must do like this:
PHP код:
format(smallstring[0], 50, "%d%d%d%d%d",random(9),random(9),random(9),random(9),random(9)); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]);
• 0
• 1
• 2
• 3
• 4
• 5
• 6
• 7
• 8
And because an integer can't starts with 0 ( something like: 0153 -> this will be transformed in 153 ), i suggest you to do like this:
PHP код:
format(smallstring[0], 50, "%d", (10000 + random(99999)))); // used for the uniqe faction code
mysql_real_escape_string(smallstring[0], eStr[0]);