Jump to content

[SOLVED] Limiting float element tables


peddel

Recommended Posts

Dear KingFilip,

 

i tought i found the solution, but it seems i did not.

 

My MySQL query

$sql = "SELECT view1.tag, view1.waarde FROM registratie "
."LEFT JOIN view1 ON registratie.registratieID = view1.registratieID "
."LEFT JOIN oorsprong_gegevens ON registratie.oorsprong = oorsprong_gegevens.oorsprong "
."WHERE registratie.productieregister = '1' AND view1.tag = 'uurtellerAmmoniak' ";

 

The thing now is that when the tag is a float and it finds a float value, i ask through php to add the value to a webpage on a certain position.

 

The representation is 34.919955433

 

Now where do i place best the ROUND() function in my query, to be sure i get 34,92.

OR do i need to do the rounding in PHP ?

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.