why aint this working?


Posted on 16th Feb 2014 07:03 pm by admin

i have this code:

Code: $num = 250;
$count = ($num - $rcount);

echo $rcount;
echo "
";
echo $count;

when i echo $rcount it gives me 153...

so my calculations is 250-153 = 97.


but for some reason $count is echoing: 249.


anyone know what im doing wrong?

No comments posted yet

Your Answer:

Login to answer
194 Like 8 Dislike
Previous forums Next forums
Other forums

Google voice
I currently have a form in html, but I want it in php so the information is not in the source code.<

Handling text changed in text box control using Ajax
I need to create a web form with a text box control. When someone types text into the textbox I nee

Oracle Connectivity
Hi Every One,

Can we access SAP from oracle database.If it possible then please spec

Text file to .Dat file Conversion in PHP
Hi All,
Could anybody provide code for Text file to .Dat file Conversion in PHP.

Tha

Error Messaging not working
I changed the way my form tells the user of an error. But I can't seem to get it to work properly.

C++ Http request?
Code: string Response = "LOGIN_UNSUCCESSFUL"; System.Net.WebRequest request = Sy

Optimize Code
Just started getting into the use of cookies. The following code will redirect users to a set URL s

Select Lists into MYSQL
Hello All, I am new to PHP @ 1 week. So borrowing code anywhere I can. I am making progress, but h

Best PHP Documentation generator
Hello guys!

I would like to hear from you what is the best PHP documentation generator. Perso

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash