You are here: Re: Checking string contents « All PHP « IT news, forums, messages
Re: Checking string contents

Posted by Geoff Berrow on 06/20/07 14:49

Message-ID: <1182346415.457377.221980@a26g2000pre.googlegroups.com> from
James_sgp contained the following:

>> so you've done
>>
>> if(strcmp($distance,"ft")==0) $max_depth=$max_depth/3.28;
>> echo $max_depth;
>> $sql= "INSERT... $max_depth ... ";
>> echo $sql;
>>
>> and $max_depth is different in the INSERT statement?

>Geoff,
> Yes you are correct...it is still the original value (ie.it seems to
>not update after doing the sum!

If the first echo shows the result of the calculation, then the second
must also.

Strip the code down to the smallest snippet that still shows the
problem. If you still haven't found the answer, post it here.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация