Buongiorno a tutti.
Dopo aver eseguito una query, con i record ottenuti devo creare un file csv.
Il problema qual'è?
E' che l'id nel database ha questo valore: 00085, mentre nel csv ha 85.
Se lascio $row['id'], e vado a stampare a video, mi fa vedere 00085, mentre nel csv ho 85.
Ha me serve avere nel csv 00085, come risolvo?Codice PHP:
while($row = $stmt->fetch(PDO::FETCH_ASSOC)){
$output.='"'.$row['id'].'";';
.......
}
Grazie a tutti.