Iank1968 Posted February 23, 2009 Share Posted February 23, 2009 I created a login program, for a game, but instead of counting it every 3 hours, it counts it every adventure. here is the code $bonus_amt = 25 + mysql_result ($result, $i, "reg_add") + mysql_result ($result, $i, "bb_bonus") * 4 + mysql_result ($result, $i, "cookie_bonus") * 4 + mysql_result ($result, $i, "camp_bonus") * 4 + mysql_result ($result, $i, "bug_bonus") * 4 + mysql_result ($result, $i, "lj_bonus") * 8 + mysql_result ($result, $i, "ic_bonus") * 8 + mysql_result ($result, $i, "hu_bonus") * 8 + is there anyway to shorten it I might not have enough info here, but would like to know if this can be shortened. Thanks Link to comment https://forums.phpfreaks.com/topic/146596-im-having-problems-with-mysql_result/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.