Member
Member
ka6ym   2011-04-21, 22:12
#1

Please help me...
How make the correct MySQL request for show tags result for all published albums and images?
I know that the comparison should go on three tables ... but nothing happens

Member
Member
ka6ym   2011-04-21, 22:16
#2

Sorry, I made ​​a mistake in the topic title, the theme is called
"How to show tags only for published images and albums?"

Member
Member
sbillard   2011-04-21, 23:47
#3

There is no convenient way.

You would have to make a query which gave you the ID fields of all the published albums and a separate one of all the published images.

Then you would have to query the obj_to_tag table and retrieve the unique IDs corresponding the type/objectid pair gathered above.

Then you can query the tags table for the names that go with those IDs

Member
Member
ka6ym   2011-04-22, 06:15
#4

I'm a beginner in php please show me a example code.

Administrator
Administrator
acrylian   2011-04-22, 08:41
#5

Well, if you are a beginner this is a good occasion to start learning the basics which this forum is not the place for.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.