Thread: Hide/Show
View Single Post
  #1  
Old 11th February 2014, 01:40
Tmx Tmx is offline
Member
 
Join Date: Dec 2009
Latvia
Posts: 11
Default Hide/Show
Hi

I want to get at details.php when it showing a certain category of torrents poster and description, but the rest of the torrents not showing poster and description.

code looks like this around

Code:
if ($row["cat_name"] == "Movies/XviD"){
				if (!empty($row['poster'])) {
				tr($tracker_lang['img_poster'], $poster, 1);
				}
				
                                if (!empty($row["descr"])) {
					tr($tracker_lang['description'], format_comment($row["descr"]), 1, 1);
					}
				}
its working and shows posters and description in details

But i want if it works for more of categories some think like this

Code:
if ($row["cat_name"] == "Movies/XviD") && ($row["cat_name"] == "Music"){
				if (!empty($row['poster'])) {
				tr($tracker_lang['img_poster'], $poster, 1);
				}
				
                if (!empty($row["descr"])) {
					tr($tracker_lang['description'], format_comment($row["descr"]), 1, 1);
					}
                                }
but this second code not working for me and i dont understand why it not works this code example.

What is that I am doing wrong?

Help please :)
Reply With Quote