Reply to Re: Trailing zeros

Your name:

Reply:


Posted by Marcel on 11/17/05 21:35

"Kannan" <Kannanmca@gmail.com> schreef in bericht
news:1132247221.901388.154680@f14g2000cwb.googlegroups.com...
> Hi
>
> I have to display the output of a stored proc in MS SQL server in a
> browser using php.
>
> The numbers are stripped of their trailing zeros.
>
> There may be multiple colums which may come from the stored proc
>
> Like
>
> Colum1 column2 column3 XXX XXX
> --------- ----------- ------------ ----
> ------
> date varchar decimal(10,2) float real
>
> I cannot use sprintf or number format as i dont know what the coulmn
> type is going to be. All I need to do is just print whatever the stored
> procedure is returning without stripping any zeros.
>
> I am a beginner in php so i am not aware of how to do this.
>
> Kindly help me .
>

$a = 0000012;

$result = intval($a);

echo $result; // prints 12

Marcel

[Back to original 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

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