iMac => 1, );
Dat hoort toch een error te geven?
Aangezien dat de laatste is
Dat hoort toch een error te geven?
Aangezien dat de laatste is
Aangezien dat de laatste isSebastiaanh schreef:Het geeft geen erroriMac => 1, );
Dat hoort toch een error te geven?Aangezien dat de laatste is
. Maar het is wel een fout die ik er even uit ge doen.Sanderc schreef:WaaromEerdere citaten tonen
Sebastiaanh schreef:Gewoon wat tekst toch? ;p[COLOR= #0000BB]<?php $apple[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR] [COLOR= #DD0000]iPod[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iPhone[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iPad[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iMac[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700], );[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<strong> Alles wat ik heb van Apple </strong><br/>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/foreach"]foreach[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$apple[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$wat[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$wat[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]<br/>[/COLOR][COLOR= #007700]; }[/COLOR] ?>
geloof je me nu?
Thommity schreef:Inderdaad, en uitlijning mag ook beterWaaromEerdere citaten tonen
Sanderc schreef:Eerdere citaten tonen
Sebastiaanh schreef:Gewoon wat tekst toch? ;p[COLOR= #0000BB]<?php $apple[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL] [COLOR= #007700]([/COLOR] [COLOR= #DD0000]iPod[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iPhone[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iPad[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]iMac[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700], );[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<strong> Alles wat ik heb van Apple </strong><br/>[/COLOR][COLOR= #007700];[/COLOR] [URL="http://www.php.net/foreach"]foreach[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$apple[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$wat[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700]) {[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000][/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$wat[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]<br/>[/COLOR][COLOR= #007700]; }[/COLOR] ?>
geloof je me nu?
. voor de echo ?
[COLOR= #0000BB]<?php
$apple[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/array"]array[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]iPod[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]3[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]iPhone[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]iPad[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]2[/COLOR][COLOR= #007700],[/COLOR]
[COLOR= #DD0000]iMac[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<strong> Alles wat ik heb van Apple </strong><br/>[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/foreach"]foreach[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$apple[/COLOR] [COLOR= #007700]as[/COLOR] [COLOR= #0000BB]$wat[/COLOR] [COLOR= #007700]=>[/COLOR] [COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$wat[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$aantal[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]<br/>[/COLOR][COLOR= #007700];
}[/COLOR]
?> Videotube schreef:Die komma hoeft niet perse weg. Als de komma er gewoon staat, is er niets fout ofzo.Geen error, maar misschien wel een warning, want die , moet weg.
Shahiem schreef:Ik gebruik ze af en toe.. Wat wil je ervan weten?Iemand hier verstand van Joins?
Sjoerd schreef:Ik heb namelijk 3 tabellen:Die komma hoeft niet perse weg. Als de komma er gewoon staat, is er niets fout ofzo.Eerdere citaten tonen
Videotube schreef:Geen error, maar misschien wel een warning, want die , moet weg.Eerdere citaten tonen
Shahiem schreef:Iemand hier verstand van Joins?
Ik gebruik ze af en toe.. Wat wil je ervan weten?

$mijnWikelwagenQuery = $mysql->query("SELECT
products.id,
products.photo,
products.description_en,
products.soort_en,
products.description,
products.name,
products.price,
COUNT(cart.id) as aantal,
(SELECT COUNT(article) FROM cart WHERE article = products.id AND ip = ".$_SERVER[REMOTE_ADDR].") as productAantal,
(SELECT COUNT(custom) FROM cart WHERE ip = ".$_SERVER[REMOTE_ADDR].") as customAantal,
(SELECT id FROM cart WHERE article = products.id AND ip = ".$_SERVER[REMOTE_ADDR]." ORDER BY id DESC LIMIT 1 ) as lastid
FROM
products
INNER JOIN cart
ON (cart.article = products.id)
LEFT JOIN custom
ON (custom.id = cart.custom)
GROUP BY
cart.article");


Azdinnn schreef:Héééééhéééé! FinallyEerdere citaten tonen
Lennard schreef:Korte webwereldvragen kunnen vanaf nu hier ipv in dit topic
Sanderc schreef:Als jullie gewoon niet zo lui waren geweest en topics aan hadden gemaakt (voor kleine vragen) dan was er niks aan de hand. Jullie maken zelf een probleem ervanEindelijk is er een soort Kleine vragen topic
