MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completely customizable, expandable and suitable for all needs.
A2Hosting
Moderators: Moderators
Page 1/2 1 2 >
Forum RSS feedReply
Latest photo albums
AuthorText
Andrei
Junior Member

Posts: 87
Contributes: 165

Gender: _MALE_
Online: No

Country: Romania
Date: 19/12/2008 16:17
Latest photo albums
#post16321
Latest photo albums. Can be done?
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 19/12/2008 18:16
Re: Latest photo albums
#post16323
Last images?
Edited: 19/12/2008 18:16
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Andrei
Junior Member

Posts: 87
Contributes: 165

Gender: _MALE_
Online: No

Country: Romania
Date: 19/12/2008 18:17
Re: Latest photo albums
#post16324
yes
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 19/12/2008 18:24
Re: Latest photo albums
#post16326
Use the random gallery block and change the ORDER BY RAND() into ORDER BY id DESC
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Andrei
Junior Member

Posts: 87
Contributes: 165

Gender: _MALE_
Online: No

Country: Romania
Date: 19/12/2008 19:18
Re: Latest photo albums
#post16331
Line: 181
code
if ($resultg = $dblink->get_list("SELECT * FROM memht_gallery_images AS i JOIN memht_gallery_categories AS c ON i.category=c.id WHERE i.enabled=1 ORDER BY id DESC LIMIT 5")) {


quote
Errno: 2 (MySQL Errno: 0)
File: /home/x/public_html/x/pages/test/index.php
Line: 181
Function: get_list
MySQL error:
Query: SELECT * FROM memht_gallery_images AS i JOIN memht_gallery_categories AS c ON i.category=c.id WHERE i.enabled=1 ORDER BY id DESC LIMIT 5
Note: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource


Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 19/12/2008 19:25
Re: Latest photo albums
#post16334
ORDER BY i.id DESC sorry
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Andrei
Junior Member

Posts: 87
Contributes: 165

Gender: _MALE_
Online: No

Country: Romania
Date: 19/12/2008 21:04
Re: Latest photo albums
#post16339
Thanks!

Now
Image

What should I change?
Image
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 19/12/2008 22:38
Re: Latest photo albums
#post16341
Just look at the file output. It's html, easy to change.. and use your fantasy + some html tutorial
Edited: 19/12/2008 22:38
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Andrei
Junior Member

Posts: 87
Contributes: 165

Gender: _MALE_
Online: No

Country: Romania
Date: 13/03/2009 18:13
Re: Latest photo albums
#post18762
last photos from a cateogrie. Can be done?
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

mem

Posts: 7243
Contributes: 4800

Gender: _MALE_
Online: No

Languages: English, Italiano, Македонски, Српски
Date: 13/03/2009 21:25
Re: Latest photo albums
#post18769
WHERE category=N ORDER BY ....

where N is the ID of the category
Follow me on twitter if you want to be updated on the MemHT 5 development.
Delete Edit Quote
 
Reply
Page 1/2 1 2 >
Tags Cloud
Twitter updates...
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.107.179.234

Username
Password
MemHT Wiki
Language
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo