Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]parse error
eminiasty
post
Post #1





Grupa: Zarejestrowani
Postów: 267
Pomógł: 0
Dołączył: 11.09.2015

Ostrzeżenie: (0%)
-----



Parse error
: syntax error, unexpected '$i' (T_VARIABLE) in
C:\xampp\htdocs\...
on line 90


90 linia to
  1. $ingredients.$i=

Wydaje mi sie ze ewnetualny blad jest przy polaczeniu dwoch zmiennych, ale przeciez zmienne laczy sie kropka wiec ?

  1. for($i=0;$i<$_SESSION['count'];$i++){
  2. $ingredients.$i= '.$_SESSION['ingredients_quantity'.$i.''] .' '.$_SESSION['measure_name'.$i.''].' - '.$_SESSION['product_name'.$i.''].' ;
  3. $pdf->Write(0, $ingredients.$i, '', 0, '', true, 0, false, false, 0);
  4. }


Z tablica jest to samo:

  1. for($i=0;$i<$_SESSION['count'];$i++){
  2. $ingredients[$i]= '.$_SESSION['ingredients_quantity'.$i.''] .' '.$_SESSION['measure_name'.$i.''].' - '.$_SESSION['product_name'.$i.''].' ;
  3. $pdf->Write(0, $ingredients[$i], '', 0, '', true, 0, false, false, 0);
  4. }


Co robie nie tak?

Ten post edytował eminiasty 20.09.2016, 00:18:19
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 10:45