MySQL Query not completing
#1

I couldn't put the whole query in to one line as I got an error, I do this and it only inserts the data up to "Rank4Name".

pawn Код:
new string[256];
    format(string, sizeof(string), "INSERT INTO groups (ID,Name,Rank1Name,Rank2Name,Rank3Name,Rank4Name) VALUES ('%d','%s','%s','%s','%s','%s')", rows += 1, GroupCreating[playerid][Name], GroupCreating[playerid][Rank1Name], GroupCreating[playerid][Rank2Name], GroupCreating[playerid][Rank3Name], GroupCreating[playerid][Rank4Name]);
    mysql_query(string);

    format(string, sizeof(string), "INSERT INTO groups (Rank5Name,Rank6Name,Rank7Name,Rank8Name,JoinRank) VALUES ('%s','%s','%s','%s','%d') WHERE Name='%d'", GroupCreating[playerid][Name], GroupCreating[playerid][Rank5Name], GroupCreating[playerid][Rank6Name], GroupCreating[playerid][Rank7Name], GroupCreating[playerid][Rank8Name], GroupCreating[playerid][JoinRank]);
    mysql_query(string);
Reply


Messages In This Thread
MySQL Query not completing - by jameskmonger - 19.02.2011, 16:31
Re: MySQL Query not completing - by Scenario - 19.02.2011, 16:45
Re: MySQL Query not completing - by jameskmonger - 19.02.2011, 16:46
Re: MySQL Query not completing - by dice7 - 19.02.2011, 16:49
Re: MySQL Query not completing - by jameskmonger - 19.02.2011, 17:12
Re: MySQL Query not completing - by dice7 - 19.02.2011, 17:20
Re: MySQL Query not completing - by Scenario - 19.02.2011, 17:32
Re: MySQL Query not completing - by jameskmonger - 19.02.2011, 17:53
Re: MySQL Query not completing - by Calgon - 19.02.2011, 18:00
Re: MySQL Query not completing - by Hiddos - 19.02.2011, 18:23

Forum Jump:


Users browsing this thread: 1 Guest(s)