Jump to content

[SOLVED] php numbers issue


EchoFool

Recommended Posts

I am trying to insert a value of :

12,020,000,000

 

And the field format is  int(15)

 

Yet when ever i put the number in it limits to :

2,147,483,647

 

My script is simple:

<?php
//happy max comes from a query further up
$Price = $HappyMax * 119.6;
Echo $Price;
$Update = mysql_query("UPDATE househappy SET Price = '$Price' WHERE RecordID='$RecordID'")
Or die(mysql_error()); 
?>

 

When i echo price i get this:

12020000000

 

But database shows:

2147483647

 

Why is this?

Link to comment
https://forums.phpfreaks.com/topic/121461-solved-php-numbers-issue/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.