Jump to content

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 ?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.