need some help

$weapon1=(int)$youdata[‘equip_primary’]; // weapon 1 ID number — this is returning correct
$weapon2=(int)$youdata[‘equip_secondary’]; // weapon 2 ID number — this is returning correct
$armor=(int)$youdata[‘equip_armor’]; // armor ID number — this is returning correct — only not needed at the moment
$wp1dmg=(int)mysql_query(“SELECT weapon FROM items WHERE itmid=$weapon1”); // should be weapon damage — this is returning resource id#
$wp2dmg=(int)mysql_query(“SELECT weapon FROM items WHERE itmid=$weapon2”); // should be weapon 2 damage — this is returning resource id#

the comments say it all. if i could get live chat with someone, that would be great too… yahoo id=steven_littrell

mysql_query() functions return result resources. You’re going to need to use mysql_fetch_array() to get the actual values out of the resources.

Sponsor our Newsletter | Privacy Policy | Terms of Service