FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PHP-Fusion - How to find thread ID when knowing post ID





Flakky
I want to know how I can find the thread id if I know the post id in the forums. Does anyone know how this can be done in PHP-Fusion?
Thanks in advance.
AftershockVibe
Are you talking from a developer (site owner) perspective or a user perspective?

I've not used PHP fusion. However, the former should be relatively simple because you will be able to query the database, the latter more complicated (assuming it can be done).
Flakky
AftershockVibe wrote:
Are you talking from a developer (site owner) perspective or a user perspective?

I've not used PHP fusion. However, the former should be relatively simple because you will be able to query the database, the latter more complicated (assuming it can be done).
I am the owner, I have full acces to the database.
cemycc
Flakky wrote:
AftershockVibe wrote:
Are you talking from a developer (site owner) perspective or a user perspective?

I've not used PHP fusion. However, the former should be relatively simple because you will be able to query the database, the latter more complicated (assuming it can be done).
I am the owner, I have full acces to the database.


I think is better to write this questions on there forum ( PHP-Fusion forum )
Also, i don`t think that is so hard ...
Just try to make a select : SELECT * FROM thread_table WHERE post_id = ?
I`m sure that they use ORM for database relationship .
Flakky
cemycc wrote:
Flakky wrote:
AftershockVibe wrote:
Are you talking from a developer (site owner) perspective or a user perspective?

I've not used PHP fusion. However, the former should be relatively simple because you will be able to query the database, the latter more complicated (assuming it can be done).
I am the owner, I have full acces to the database.


I think is better to write this questions on there forum ( PHP-Fusion forum )
Also, i don`t think that is so hard ...
Just try to make a select : SELECT * FROM thread_table WHERE post_id = ?
I`m sure that they use ORM for database relationship .
Will post it on their forums see if that works Smile
riccopt
can't you simply look on the URL to find that out?
Flakky
riccopt wrote:
can't you simply look on the URL to find that out?
I need to code it. The script can only be given a post ID and should figure out the rest as the thread itself is unknown.
Fire Boar
Just look at the database. Where see a table with both "post ID" and "thread ID", that's your link table.
Related topics
PHP FUSION
was Hitler a Christian?
News and Comment system!
Php-fusion(+extreme-pack)
Microsoft Strikes again
Which Portal System better?
PHP-Fusion
comment installer et activer php-fusion?
PHP-Fusion
How do i install a Mod in PHPBB
Hammy's Interesting Thread of Interesting!
Ankur Thakur E-Stand | Web Blog and Addons for PHP-Fusion
PHP-Fusion | An Open Source CMS | PHP & MySQL Based
how to create post views?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.