Saving a string to MySQL
#1

Код:
SaveSQLStr(HouseData[houseid][HouseID], "houses", "OwnerName", HouseData[houseid][HouseOwnerName]);
I use this line of code to save the owners name to MySQL.

Here's my SaveSQLStr :

Код:
Server:SaveSQLStr(sqlid, table[], row[], value)
{
	new query[500];
	mysql_format(sqlBaglanti, query, sizeof query, "UPDATE %e SET %e = '%s' WHERE id = '%i'", table, row, value, sqlid);
	mysql_pquery(sqlBaglanti, query);
	return true;
}
But strangely it adds another letter to the name.

For example, if the owners name is "Harold Kingston". It saves it like this: "HHarold Kingston". I couldn't figure out what is wrong.
Reply


Messages In This Thread
Saving a string to MySQL - by UnlikePluto - 25.06.2017, 12:41
Re: Saving a string to MySQL - by Vince - 25.06.2017, 12:53
Re: Saving a string to MySQL - by Abagail - 25.06.2017, 12:54
Re: Saving a string to MySQL - by UnlikePluto - 25.06.2017, 13:03
Re: Saving a string to MySQL - by Abagail - 25.06.2017, 13:19
Re: Saving a string to MySQL - by skuller12 - 25.06.2017, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)