una volta caricato file e sostituito le variabili ecco cose vedo come query
query_06.sql
INSERT INTO `f_tb_card` ( `id_card` , `id_rapp` , `id_player` , `yellow_card` , `red_card` , `day_card` , `giornata` , `categoria` , `stagione` , `note` ) VALUES ( '', '1', '1', '1', '0', '0', '33', 'A', '2005/2006', '')
*****-----******1
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '1' at line 1
come vedete sostituisce uno zero
la varaibile è $var["red_card"]=0;
se metto a 1 funziona!se lo zero lo scrivo direttamente nel file sql funziona!
![]()