MySQL Help
#1

Код:
stock SaveBizz()
{
	new req[1024];
 	format(req, sizeof(req), "UPDATE `bussines` SET `Owned` = '%i', `Owner` = '%s', `Bank` = '%i', `Prod` = '%i', `Upgrade` = '%i', `WorkerPay` = '%i', `ManagerPay` = '%i' WHERE `ID` = %i",
  	BizzInfo[0][bOwned], BizzInfo[0][bOwner], BizzInfo[0][bBank], BizzInfo[0][bProd], BizzInfo[0][bUpgrade], BizzInfo[0][bWP], BizzInfo[0][bMP], BizzInfo[0][bID]);
	mysql_query(req, -1, 0, MySQL);
	return 1;
}
So, as I planned, when u call this function it saves info about Bizz[0][...] to DB. But it doesn't. What am I doing wrong?
MySQL v5.5
Reply


Messages In This Thread
MySQL Help - by SamJust - 14.08.2015, 20:32
Re: MySQL Help - by Dziugsas - 14.08.2015, 20:40
Re: MySQL Help - by SamJust - 14.08.2015, 20:56
Re: MySQL Help - by SamJust - 15.08.2015, 08:03
Re: MySQL Help - by MarvinPWN - 15.08.2015, 08:57
Re: MySQL Help - by SamJust - 15.08.2015, 10:42
Re: MySQL Help - by SamJust - 15.08.2015, 21:05
Re: MySQL Help - by BlackBank - 16.08.2015, 02:01
Re: MySQL Help - by SamJust - 16.08.2015, 18:46
Re: MySQL Help - by SamJust - 19.08.2015, 09:38

Forum Jump:


Users browsing this thread: 3 Guest(s)