Questions and answers about change of functions, design, hosting etc.
	Moderators: Koduc, Xpycm
	
		
		
			Forum rules
			Pay attention! Forum is not a means for guaranteed support of clients and users. An answer as well as a quick answer is not supposed on the forum. We post messages as soon as possible.
The message limit on the forum is 3 messages per day. 
If you want to say "thank you" then use the function "Give good reputation point", which is a green icon "plus" under  the nickname of the person, who answered the message.
		
		
	 
	
		
		
			
				
			
			
			
by abrahannunez » 02 Nov 2017, 23:22 
			
			Hi guys, 
Does anybody can help me, I need to query all the photos of a listing to make a second gallery on my property view page.
Thanks in advance.
			
		 
		
			
			- 
				abrahannunez
			
 
			- Stranger
 
		-  
 
		- Posts: 3
 - Joined: 02 Nov 2017, 23:14
 - Reputation point: 0
 
 
		
	
		
		 
	 
	
	
		
		
			
				
			
			
			
by Xpycm » 03 Nov 2017, 08:59 
			
			Hello.
- Code: Select all
 SELECT id, file_name, file_name_modified FROM {{images}} WHERE id_object = MY_ID_OBJECT ORDER BY sorter; 
or in model:
- Code: Select all
 foreach($model->images as $image) {
... do something
} 
 
			
		 
		
			
			- 
				Xpycm
			
 
			- Web Developer

 
		-  
 
		- Posts: 281
 - Joined: 30 Dec 2011, 11:06
 - Reputation point: 2
 
 
			- 
				
			
 
		
		
	
		
		 
	 
	
	
		
		
			
				
			
			
			
by abrahannunez » 03 Nov 2017, 22:28 
			
			Thanks for your help, it's works.
			
		 
		
			
			- 
				abrahannunez
			
 
			- Stranger
 
		-  
 
		- Posts: 3
 - Joined: 02 Nov 2017, 23:14
 - Reputation point: 0
 
 
		
	
		
		 
	 
	
	
	
	Return to Questions and help for changes
	
	Who is online
	Users browsing this forum: Baidu [Spider] and 4 guests