LUzel25 Posted February 4, 2014 Share Posted February 4, 2014 My question is about this line: return (mysql_result($total, 0) == '1') ? true : false; What does ", 0)" stand for ? Quote Link to comment https://forums.phpfreaks.com/topic/285948-return-1-1-true-false/ Share on other sites More sharing options...
Solution Barand Posted February 4, 2014 Solution Share Posted February 4, 2014 The first field in the row (starting from 0). The true and false are redundant in that statement, you could just return the boolean value return (mysql_result($total, 0) == '1'); Quote Link to comment https://forums.phpfreaks.com/topic/285948-return-1-1-true-false/#findComment-1467763 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.