Setting integers with decimals into a cell

From: Date: Sun, 31 Dec 2000 15:18:08 +0000
Subject: Setting integers with decimals into a cell
Groups: php.db 
Request: Send a blank email to php-db+get-5542@lists.php.net to get a copy of this message
MUAHAHAHAHA - Hello, grokkers of PHP! I have almost finished my evil new-years-eve project, but I have run into the last problem of them all. You see - I have a variable that usually produces a number like this: 4.17349837364732. I want this to be 4.17 and set it into a MySQL database. How can this be done? I currently have the field in question set to TINYINT, but that does not seem to work. Can anyone please help me with this little problem? /Mattias

« previous php.db (#5542) next »