PDA

View Full Version : Displaying latest Thread on a diff .php page


Jacko
07-13-2004, 11:07 PM
I am running a store script over @ www.carstyledirect.com

and i want to display the top 5 latest threads on there, the script uses .html templates and is all .php driven.


Can this be done with an include etc....?

Thanks

Andreas
07-13-2004, 11:12 PM
Either you require the vBulletin backend or you do it manually:


select * from thread where forumid=12 order by dateline desc limit 5


This will give you the last 5 threads started in forum id 5 in descending order

Jacko
07-13-2004, 11:20 PM
wouldnt i need to connect to a sep db also?? as the store db is seperate from the vb one.

and i aint to good at sql.

Andreas
07-13-2004, 11:22 PM
If you can access both DBs with the same mySQL account you can just switch the database. If you you will need a separate database connection.

Jacko
07-13-2004, 11:28 PM
how do i access the diff connection then??