08.07.2013, 07:59
Код:
format(str, sizeof(str), "SELECT `HouseID` FROM `Houses` WHERE `Houseowner`='%s'", name); mysql_query(str); mysql_store_result(); mysql_get_field("HouseID", str); //Gets the first field of the row returned (HouseID) mysql_free_result(); if(!sscanf(str, "d", integer))