Forums

[resolved] retrieving data from NextGen (2 posts)

  1. cocobongo
    Member
    Posted 3 years ago #

    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) ASRowsFROMwp_ngg_galleryWHEREgid> 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?

  2. cocobongo
    Member
    Posted 3 years ago #

    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 :(

Topic Closed

This topic has been closed to new replies.

About this Topic