Jump to content

[SOLVED] Counting the number of results from an sql query


jib

Recommended Posts

Is it possible to count the number of entries in your result variable, for example

 

$result = mysql_query($sql);

 

then find out how many entries are in $result, so I can print the total number of records found.

 

I tried sizeoff($result) but that didn't work

Cheers

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.