Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Flash/PHP Weird Integer Problem
Old 07-07-2006, 02:59 PM Flash/PHP Weird Integer Problem
Skilled Talker

Latest Blog Post:
Reasons to Eat Meat
Posts: 80
Trades: 0
Hi, I have a question.

I'm working on a Flash/PHP application, and I'm having problems with one part of the code. At this part, Flash loads a variable from one PHP script (which gets it from MySQL), adds 1 to it, and outputs it to another PHP script.

The variable in question an integer, so if the variable was, for example, 2, I want Flash to take 2, add 1, and output the number 3. However, Flash isn't treating the variable like an integer--it's just adding the character 1 to the end of it. So instead of ending up with 3, it's taking two and outputting 21.

Any idea what's causing this? I can include code if that helps.

Thanks
Tom
__________________

Please login or register to view this content. Registration is FREE
Free webmaster resource w/ reviews of affiliate programs, pay per popup, pay per click, etc
Tomcat7194 is offline
Reply With Quote
View Public Profile Visit Tomcat7194's homepage!
 
 
Register now for full access!
Old 07-08-2006, 03:01 AM Re: Flash/PHP Weird Integer Problem
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
cast it to an integer before using it

items passed using GET or POST are sent as strings
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Flash/PHP Weird Integer Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.50945 seconds with 12 queries