![]() |
remove decimal places in rand()
what ya think to the select below... the highscore part shows
value.000 $randomgame = $db->query_first("SELECT gameid,title,description,stdimage,highscore FROM ".TABLE_PREFIX."arcade_games ORDER BY RAND() LIMIT 1"); how to remove those 3 little naughts! :) I've looking into various things but i cannot suss it, please help -b6 |
you've got a number of choices, you can truncate the value using substr() or you can use ceil() or floor() to round up or down.
|
thankyou
-b6 |
All times are GMT. The time now is 10:09 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|