[MYSQL] Either queries or sscanf crash the server
#3

Код:
    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))
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)