Code: Select all
MYSQL_RES* result = query.RunQuery2(Q_SELECT, "SELECT h.id,h.house_id, h.item_id, h.x, h.y, h.z, h.rotation, h.pitch, h.roll, h.scale, h.incrate,i.model_id,i.primary_command,i.secondarycommand FROM house_item_list h,item_details_house i WHERE h.house_id = %s and h.item_id = i.item_id ", house_id );thinking it is something to do with ", house_id and the corresponding %s
do i need to convert house_id to a string?