Title: retrieving data from NextGen
Last modified: August 19, 2016

---

# retrieving data from NextGen

 *  Resolved [cocobongo](https://wordpress.org/support/users/cocobongo/)
 * (@cocobongo)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/retrieving-data-from-nextgen/)
 * I’m trying to retrieve the amount of images from a nextGen gallery, but I’m quite
   ignoramus on PHP, so I used the “build PHP code” from a phpMyAdmin query (which
   of course works as a query) and it didn’t work. So I tried this:
 * `<p>This post has <?php $query = SELECT SUM(`gid`) AS`Rows`FROM`wp_ngg_gallery`
   WHERE`gid`> 0'; ?> pictures </p>`
 * but it gives me the following error message:
 * `Parse error: syntax error, unexpected T_STRING in /home/coco23/public_html/*****/
   wp-content/themes/newtheme/index.php on line 14`
 * Any help on this subject?

Viewing 1 replies (of 1 total)

 *  Thread Starter [cocobongo](https://wordpress.org/support/users/cocobongo/)
 * (@cocobongo)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/retrieving-data-from-nextgen/#post-960021)
 * Solved it myself.
 * On a side note, it seems I won’t never be able to get any WordPress related help
   in this forum, never got a single answer in 2 years 🙁

Viewing 1 replies (of 1 total)

The topic ‘retrieving data from NextGen’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [nextgen](https://wordpress.org/support/topic-tag/nextgen/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [retrieve data](https://wordpress.org/support/topic-tag/retrieve-data/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [cocobongo](https://wordpress.org/support/users/cocobongo/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/retrieving-data-from-nextgen/#post-960021)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
