Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

respectyoda on "Query Wordpress database by registered date and role"

$
0
0

You have to understand that this piece of code...

$row = mysql_fetch_row($result);

...only returns the number of rows. So, you'd have to access the values by using the index/name. Here's an example.

while ($row = mysql_fetch_array($result))
{
    echo "Name :{$row['user_login']} <br>" .
         "Email : {$row['user_email']} <br>" .
         "User Level : {$row['meta_key']} <br><br>";
         "Value of User Level : {$row['meta_value']} <br><br>";
}

Viewing all articles
Browse latest Browse all 5527

Trending Articles