Jump to content

im having problems with mysql_result


Iank1968

Recommended Posts

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

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.