Function or normal exec
#1

This functiun make lag(this is a question not an afirmation)
Quote:

MySQL_SetInteger(sqlid, fieldname[], value, tablename[])
{
new query[256];
format(query, sizeof(query), "UPDATE %s SET %s = %d WHERE id = %d LIMIT 1", tablename, fieldname, value, sqlid);
return mysql_query(query);
}

Is better to use this ?
Quote:

format(query, sizeof(query), "UPDATE %s SET %s = %d WHERE id = %d LIMIT 1", tablename, fieldname, value, sqlid);
mysql_query(query);

Reply


Messages In This Thread
Function or normal exec - by andyandyy8 - 05.04.2014, 08:04
Re: Function or normal exec - by Dokins - 05.04.2014, 08:42

Forum Jump:


Users browsing this thread: 1 Guest(s)