Basing a boolean function on MySQL data
#4

Quote:
Originally Posted by Kikito
Посмотреть сообщение
num_rows will always return 1 when using a COUNT instruction in the query..
---
Use fetch_row function instead.
The first row[and the unique row from the SELECT instruction, returned from the fetch_row function] will contain the numbers 0 or 1 from the query you made.
Then, free the result, and return the value.
Could you give me a quick example ?
Reply


Messages In This Thread
Basing a boolean function on MySQL data - by Partner - 30.10.2014, 22:07
Re: Basing a boolean function on MySQL data - by Djole1337 - 30.10.2014, 22:13
Re: Basing a boolean function on MySQL data - by GWMPT - 30.10.2014, 22:21
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 08:02
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 09:09
Re: Basing a boolean function on MySQL data - by GWMPT - 31.10.2014, 11:02
Re: Basing a boolean function on MySQL data - by Vince - 31.10.2014, 11:10
Re: Basing a boolean function on MySQL data - by Partner - 31.10.2014, 11:17
Re: Basing a boolean function on MySQL data - by GWMPT - 31.10.2014, 11:19

Forum Jump:


Users browsing this thread: 1 Guest(s)