Originariamente inviata da aquatimer2000 con gli apici, ho questo errore: codice: Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\... Allora fai così : codice: while($row=$sql->fetch(PDO::FETCH_ASSOC)){ $id_post=$row['id_post']; $titolo_post=$row['titolo_post']; print"$id_post - $titolo_post <br/>"; }
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in C:\xampp\...
while($row=$sql->fetch(PDO::FETCH_ASSOC)){ $id_post=$row['id_post']; $titolo_post=$row['titolo_post']; print"$id_post - $titolo_post <br/>"; }
Regole del Forum