facendo questa query
select id_votazione
from votazione
where id_utente = $idutente and id_immagine=$idimg
all'interno di questa ipotetica tabella
------------------------------------------
| id_votazione | id_utente | id_immagine |
------------------------------------------
| 1 | 1 | img1 |
| 2 | 1 | img2 |
| 3 | 2 | img1 |
------------------------------------------
il risultato della query non sarebbe id_votazione=1 ?

Rispondi quotando