php, her biri için, sözdizimi hatası [kapalı]

3 Cevap php

code image.

Hi, this is my code, don't know why but I have a stupid syntax error,on the marked line. Please bring some light for a php nob.

Parse error: syntax error, unexpected ')', expecting ';' in /var/www/stats/upd_tr_stats.php  on line 38

3 Cevap

Bir while döngü yerine for kullanmanız gerekir.

in php.net

for (expr1; expr2; expr3)
statement

böylece, sizin için fonksiyon üç ifade yoktur.

Bu bir foreach ifadesi değil, bir deyim. Bir bekliyor bu yüzden;

Ama yine de bir bölümü eksik.