It’s very simple to generate random password in MySQL. Here is sample MySQL query to generate random password. SELECT substring(MD5(RAND()) from 1 for 10) AS password To generate random password I’m going use three MySQL functions 1. RAND() 2. MD5()….. Read More >>>>
Continue Reading »Pass Javascript variable value to php variable
We can use variable value in JavaScript in PHP, but we can not directly use value in client side (JavaScript) in server side PHP. Here is simple solution to use value in client side (JavaScript) variable in server side PHP….. Read More >>>>
Continue Reading »Find number of affected rows by MySQL UPDATE query in Java
In java executeUpdate() function of Preparedstatement returns integer which gives numbers of rows affected for particular MySQL updation………. Here is the simple code how to access number of affected rows MySQL UPDATE query in Java……….. statement=connection.prepareStatement(“UPDATE login SET user_name ='”+userName+”‘ WHERE id =”+userID+””); int….. Read More >>>>
Continue Reading »Multi dimensional array in Smartfoxserver 2x (Java API)
This is simple example how to use multi dimensional array in SmartFoxServer actionScript 3 API as well Java API. I am using actionScript 3 API on the client, on the server side I’m using Java API to get that value….. Read More >>>>
Continue Reading »Two dimensional array in Smartfoxserver 2x (Java API)
This is simple example how to use two dimensional array in SmartFoxServer actionScript 3 API as well Java API. I am using actionScript 3 API on the client, on the server side I’m using Java API to get that value….. Read More >>>>
Continue Reading »SmartFoxServer 2x Custom User Registration and Login
In multi player gaming development there is requirement like custom user registration and custom user login which is some what tricky in smartfoxserver 2x or smartfoxserver pro. In smartfoxserver 2x for custom user registration and login, we need two zones for….. Read More >>>>
Continue Reading »