Jump to content


sweet789

Member Since 16 Feb 2012
Offline Last Active Feb 16 2012 02:42 PM

Topics I've Started

How to submit Integer [Type] to a database[mysql]

16 February 2012 - 11:04 AM

How to submit Integer [Type] to a database[mysql]
   Hello, everybody... I have a urgent problem! Hope you can help me please.

   I want to submit the score [integer] to my server. I know it thoughts the php script to do it.
   But i only know that how to submit the string type to a database...
   Like:
"http://localhost/Game_connect/insert.php?myscore="+myscore;
        
   But this way is for string type only...!! My Question is how  to submit the score which is integer type, to a server?
    
According to this way, the error is:
"http://localhost/Game_connect/insert.php?myscore="+myscore;  
                                                              ^
at position 61: Wrong type of arguments to +.