Clear Query[];
#1

new query[100];
public Testing()
{
mysql_format(DBHandle, query, sizeof(query), "INSERT INTO `test` VALUES ('','%s');",query);
mysql_tquery(DBHandle, query, "", "");
query[0] = '\0';
}
Whether it is possible to clear so everywhere (query[0] = '\0' it is possible to use so every time to avoid creation of every time new query[100]; ?
Reply
#2

and as I told that it, perhaps, so or better isn't unnecessary?
Reply
#3

It is possible by hooking your mysql functions, seems like a lot of hassle for nothing though. You're better of using different sized strings accordingly to the max length of your query. Locally, as ****** said.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)