Page 1 of 1

type of value that are readed from a DB

Posted: Tue Feb 03, 2004 5:01 am
by pelegk2
when iread vakues from mysql using

Code: Select all

<?php
mysql_fetch_array
?>
and the values are defined in the DB as float why when i access them i see that they are defined as string?
thanks in advance
peleg

Posted: Tue Feb 03, 2004 9:08 am
by twigletmac
MySQL and PHP's data types are completely separate - e.g. PHP doesn't have a DATETIME type does it? You can force the type of a variable in PHP - check the manual for more info.

Mac