You are here: Trailing zeros « All PHP « IT news, forums, messages
Trailing zeros

Posted by Kannan on 11/17/05 19:07

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 .

 

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

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