Login   Register  
PHP Classes
elePHPant
Icontem

select results

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MySQL Query Builder  >  All threads  >  select results  >  (Un) Subscribe thread alerts  
Subject:select results
Summary:mysql_num_rows, mysql_fetch_array
Messages:2
Author:Sol Beltrame
Date:2013-01-31 01:23:46
Update:2013-02-16 03:03:01
 

  1. select results   Reply   Report abuse  
Picture of Sol Beltrame
Sol Beltrame
2013-01-31 01:23:46
Hello, how can I use the commands mysql_num_rows and mysql_fetch_array with those selects?

Thank you.

  2. Re: select results   Reply   Report abuse  
Picture of Sol Beltrame
Sol Beltrame
2013-02-16 03:03:02 - In reply to message 1 from Sol Beltrame
that's what i get:

// NUM_ROWS -------------------------------------------------------------*
echo count($sql);

// ECHO ARRAY -----------------------------------------------------------*
echo $sql[0]["user"];

// FETCH ARRAY ----------------------------------------------------------*
for ($i = 0; $i < count($sql); $i++) {
$ft = $sql[$i];
echo $ft['user'];
}