Posts by Cláudia M. A. de Oliveira • 74 points
2 posts
-
-1
votes1
answer328
viewsA: Error Based on Accentuation
try to use mysql_set_charset('utf8',$conec);
-
6
votes1
answer6721
viewsA: MYSQL calculate the chosen percentage
I don’t know if it would be the best way to do it, but I would do it like this: SELECT count(q.id) / t.total * 100 as perc, resposta from quiz q, ( SELECT count(*) as total from quiz ) t GROUP BY…