How can I get the value returned from the row() function in the database

#5
[eluser]Namsu[/eluser]
[quote author="WanWizard" date="1281654464"]This is because in your method you have manually created a count query.

Do something like
Code:
COUNT(artevtid) AS count

Then you can access the result as
Code:
$total->count;
[/quote]

I changed my SQL statement to:

Code:
$sql = "SELECT COUNT(artevtid) AS quantity FROM artevt";

and to get the value by return I used this:

Code:
$total->quantity;


Messages In This Thread
How can I get the value returned from the row() function in the database - by El Forum - 08-12-2010, 07:32 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.