/mycars - MYSQL HELP
#8

Quote:
Originally Posted by PowerPC603
Посмотреть сообщение
pawn Код:
if(mysql_num_rows() == 1)
It's because you're only processing one car.

It there are more rows returned, your code doesn't do anything, as it skips both if-statements.

You should loop through all rows returned, fetch the data from each row and display it.
I always used another mysql plugin but a friend told me i should switch to this one I am using now, can you give me a example or do it with my code?
Reply


Messages In This Thread
/mycars - MYSQL HELP - by Stefand - 30.01.2014, 18:22
Re: /mycars - MYSQL HELP - by Shockey HD - 30.01.2014, 18:59
Re: /mycars - MYSQL HELP - by Stefand - 30.01.2014, 19:52
Re: /mycars - MYSQL HELP - by Stefand - 30.01.2014, 20:46
Re: /mycars - MYSQL HELP - by Shockey HD - 30.01.2014, 20:52
Re: /mycars - MYSQL HELP - by Stefand - 30.01.2014, 21:13
Re: /mycars - MYSQL HELP - by PowerPC603 - 30.01.2014, 21:16
Re: /mycars - MYSQL HELP - by Stefand - 30.01.2014, 21:29
Re: /mycars - MYSQL HELP - by PowerPC603 - 30.01.2014, 21:32
Re: /mycars - MYSQL HELP - by Stefand - 31.01.2014, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)