MYSQL Issue With ID Fetch
#2

Not sure how many times I've said it the past few weeks, but if you're using R7 or higher then you MUST use callbacks. Though in your case you could probably solve it with a subquery;

PHP код:
UPDATE users SET car=(SELECT MAX(`id`) FROM `vehicles`) WHERE name='%s' 
Reply


Messages In This Thread
MYSQL Issue With ID Fetch - by UnknownGamer - 13.01.2014, 06:35
Re: MYSQL Issue With ID Fetch - by Vince - 13.01.2014, 10:03
Re: MYSQL Issue With ID Fetch - by UnknownGamer - 13.01.2014, 18:05

Forum Jump:


Users browsing this thread: 1 Guest(s)