mysql help
#3

Quote:
Originally Posted by TheXIII
Посмотреть сообщение
Err.. just click on the "SQLID", so it will sort it by that?
you miss understood

i use this code:
Код:
    format(string, sizeof(string), "INSERT INTO business_products (BSQLID, ProductName, Stock, SellPrice) VALUES('%i', '%s', '%i', '%i')",
        OrderInfo[playerid][OrderDestID], GetProductName(OrderInfo[playerid][OrderID]), OrderInfo[playerid][OrderAmount] + ProductAmount, 9999999);
    mysql_query(string);
    mysql_query("SELECT MAX(SQLID) FROM business_products");
It inserts in the next sqlid, not in a free sqlid.
Reply


Messages In This Thread
mysql help - by armyoftwo - 12.11.2010, 12:33
Re: mysql help - by TheXIII - 12.11.2010, 12:40
Re: mysql help - by armyoftwo - 12.11.2010, 12:44
Re: mysql help - by Sub Z3rO - 12.11.2010, 12:49
Re: mysql help - by armyoftwo - 12.11.2010, 12:56
Re: mysql help - by TheXIII - 12.11.2010, 12:56
Re: mysql help - by Cameltoe - 12.11.2010, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)