Ik heb een query die 4 berichten moet selecteren en daarbij het aantal reacties
Maar als ik deze berichten weergeef zijn ze leeg
Voorbeeld @ www.busicsites.nl
Query:
- Niels
Maar als ik deze berichten weergeef zijn ze leeg
Voorbeeld @ www.busicsites.nl
Query:
[COLOR= #0000BB]<?php
$nieuwsQuery[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$Core[/COLOR][COLOR= #007700]->[/COLOR]MySQL[COLOR= #007700]->[/COLOR]query[COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT
nieuws.titel AS titel,
nieuws.klein AS klein,
nieuws.id AS id,
COUNT(staffcounter.id) AS staffcount,
COUNT(counter.id) AS count
FROM
bomkgdsq_busicsites.nieuws AS nieuws,
bomkgdsq_busicsites.nieuws_reacties AS staffcounter,
bomkgdsq_busicsites.nieuws_reacties AS counter
WHERE
staffcounter.nieuws_id = nieuws.id
AND
counter.nieuws_id = nieuws.id
AND
counter.hide = 0
AND
staffcounter.hide = 1
ORDER BY
nieuws.id DESC
LIMIT
4"[/COLOR][COLOR= #007700]);[/COLOR]
?> - Niels
?