SQL query help

Started by Neo_TE, July 30, 2013, 04:24:23 AM

Previous topic - Next topic

emanuele

Yep, I think Sorck is right, the join is not necessary.

But there is something that I'm not sure about.
How many time each user can like a certain message?

Quote from: Grumpy Old Sod on August 10, 2013, 01:21:31 PM
Quote from: emanuele on August 08, 2013, 08:02:50 AM
It's not that we are 24/7 at the computer. :P

I thought you lived in a computer.

:D
O:)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Neo_TE

Quote from: Sorck on August 10, 2013, 01:12:08 PM
The easiest way will just be to try the queries out.

It looks as if it would do the job if you removed the JOIN from the query. The ORDER BY won't really affect it that much.

Quote from: emanuele on August 11, 2013, 04:30:54 AM
Yep, I think Sorck is right, the join is not necessary.

But there is something that I'm not sure about.
How many time each user can like a certain message?

Thanks for guiding me. Yes, the join query is unnecessary.

A user can like a post only once.

The 'like image/link' is displayed as default. If the user has liked the post, the 'like image/link' is replaced with an option to 'remove the like'.

I've thought of a new solution which should work properly. Ill post it soon. :)

Arantor

Seems to me you would have been better finding a likes mod rather than trying to rewrite an existing but totally unrelated mod. For example, http://smfhelp.org/index.php?topic=63.0
Holder of controversial views, all of which my own.


Neo_TE

Quote from: Arantor on August 11, 2013, 09:08:53 PM
Seems to me you would have been better finding a likes mod rather than trying to rewrite an existing but totally unrelated mod. For example, http://smfhelp.org/index.php?topic=63.0

:'(

Arantor

Sorry but that's how it is... the karma setup is really not the right base for this project. There are too many things karma doesn't do.
Holder of controversial views, all of which my own.


Neo_TE


Advertisement: