PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Classifieds How do I...? (http://www.photopost.com/forum/classifieds-how-do-i/)
-   -   QUERY who's subscribing to categories? (http://www.photopost.com/forum/classifieds-how-do-i/133903-query-whos-subscribing-categories.html)

oldengine October 18th, 2007 11:20 PM

QUERY who's subscribing to categories?
 
How to find out who's subscribing to which categories?

Is there any standard QUERY that can be run to get a listing of which users are subscribed to which categories?

Also, a QUERY to list ads that are SOLD, but still in the database?

Thanks!

Chuck S October 19th, 2007 10:09 AM

well the notify table any query would just be returning userid's not usernames so results would not be like you want I would say.

As far as sold ads still in the system thats EASY.

SELECT * FROM cp_products WHERE approved='1' AND status != 0

oldengine October 19th, 2007 12:01 PM

As a non-professional programmer, I need just a bit more information on how to accomplish this.

Users can be limited on how many ads they can run in Usergroups Max Ads Limit. Since this number includes closed ads as well as active ads, a means of determining the total number of ads that a user has is important.

Is your command something that I use in PhpMyadmin or do I need to write a script to run it?

Just a few more clues please.

Chuck S October 19th, 2007 12:25 PM

The command above is something you can run in phpmyadmin and should show closed ads still in the products table.

oldengine October 19th, 2007 12:48 PM

OK, I ran your line in the "Run SQL query/queries on database" window and got ten results. If that's it, not bad for a database of 518 active ads. Must be the ads are being dumped automatically (after 3 days) as planned.

May I suggest a few extra utility reports in the Admin page of your next beta release. That would be far less intimidating than dealing with PhpMyadmin Nerdvision. (I'm always afraid that I can screw something up in there.) Googling keywords (mysql query select tutorial) brings back a plethora of ad laden pages that have gone into keyword overload and say nothing. It's a jungle out there!

I'll keep studying. :)

Chuck S October 19th, 2007 01:48 PM

Not bad I can try adding a sold queue thats pretty easy in future version.


All times are GMT -5. The time now is 05:26 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97