MySQL Input line too long
#2

Hello!

You have to do that like this:
PHP код:
format(query,sizeof query,"UPDATE `companies` SET `companyName`='%s',`companyColor`=%d,`companyType`=%d,`companyRanks`=%d,`companyInformationX`=%.4f,",
SQL_RetrunEscaped(CompanyData[companyid][companyName]),CompanyData[companyid][companyColor],CompanyData[companyid][companyType],CompanyData[companyid][companyRanks],
CompanyData[companyid][companyInformationPos][0]);
format(query,sizeof query,"%s`companyInformationY`=%.4f,`companyInformationZ`=%.4f,//and so on",
query,CompanyData[companyid][CompanyInformationPos][1
It is an example so you have to complete this.


- Mencent
Reply


Messages In This Thread
MySQL Input line too long - by Zens - 16.07.2015, 14:35
AW: MySQL Input line too long - by Mencent - 16.07.2015, 14:41
Re: AW: MySQL Input line too long - by Zens - 16.07.2015, 15:06
Re: MySQL Input line too long - by Zens - 16.07.2015, 16:20

Forum Jump:


Users browsing this thread: 1 Guest(s)