La Spiaggia del Dragone

La Spiaggia del Dragone => Supporto tecnico => Topic aperto da: fedyfausto - Novembre 25, 2009, 12:09:26 am

Titolo: Aiuto per PHP e SQL
Inserito da: fedyfausto - Novembre 25, 2009, 12:09:26 am
ho questa parte di codice:
Codice: [Seleziona]
<?php 


$insertSQL 
sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_pubblica['id_forumsection_cod4'].", ".$categoria_reclutazione.", ".$desc_categoria_reclutazione.", 0 , ".$row_sezione_pubblica['country_forumsection_cod4']." , ".$icona_categoria_reclutazione." )",
$Result1 mysql_query($insertSQL$database_cod4) or die(mysql_error());

$insertSQL sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_pubblica['id_forumsection_cod4'].", ".$categoria_clanwars.", ".$desc_categoria_clanwars.", 0 , ".$row_sezione_pubblica['country_forumsection_cod4']." , ".$icona_categoria_clanwars." )",
$Result2 mysql_query($insertSQL$database_cod4) or die(mysql_error());


$insertSQL sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_privata['id_forumsection_cod4'].", ".$categoria_benvenuti.", ".$desc_categoria_benvenuti.", 0 , ".$row_sezione_privata['country_forumsection_cod4']." , ".$icona_categoria_benvenuti." )",
$Result3 mysql_query($insertSQL$database_cod4) or die(mysql_error());

$insertSQL sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_privata['id_forumsection_cod4'].", ".$categoria_offtopic.", ".$desc_categoria_offtopic.", 0 , ".$row_sezione_privata['country_forumsection_cod4']." , ".$icona_categoria_offtopic." )",
$Result4 mysql_query($insertSQL$database_cod4) or die(mysql_error());

$insertSQL sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_privata['id_forumsection_cod4'].", ".$categoria_strategieallenamenti.", ".$desc_categoria_strategieallenamenti.", 0 , ".$row_sezione_privata['country_forumsection_cod4']." , ".$icona_categoria_strategieallenamenti." )",
$Result5 mysql_query($insertSQL$database_cod4) or die(mysql_error());

$insertSQL sprintf("INSERT INTO forumcategory_cod4 (id_section_forumcategory_cod4, name_forumcategory_cod4, description_forumcategory_cod4, private_forumcategory_cod4, country_forumcategory_cod4, icon_forumcategory_cod4) VALUES (".$row_sezione_privata['id_forumsection_cod4'].", ".$categoria_tattiche.", ".$desc_categoria_tattiche.", 0 , ".$row_sezione_privata['country_forumsection_cod4']." , ".$icona_categoria_tattiche." )",
$Result6 mysql_query($insertSQL$database_cod4) or die(mysql_error());

header("location: myclan.php"); 

?>



pero sembra darmi errore Parse Error : qualcuno sa trovare xke è un giorno che ci sbatto
Titolo: Re: Aiuto per PHP e SQL
Inserito da: blkwr - Novembre 25, 2009, 08:31:44 am
$icona_categoria_reclutazione." )",



n00b, go to make shit, fucking bitch!! :*
Titolo: Re: Aiuto per PHP e SQL
Inserito da: Aluerese - Novembre 25, 2009, 01:36:45 pm
MA VAFFANCULO
Titolo: Re: Aiuto per PHP e SQL
Inserito da: blkwr - Novembre 25, 2009, 03:56:26 pm
ueheuhe ma poi ci stava roba peggiore, almeno ora funziona :look:

povero piccolo fedy, così giovine e inesperto
Titolo: Re: Aiuto per PHP e SQL
Inserito da: Aluerese - Novembre 25, 2009, 05:04:38 pm
in realta non so neanche di cosa cazzo state parlando :)
Titolo: Re: Aiuto per PHP e SQL
Inserito da: blkwr - Novembre 25, 2009, 05:18:48 pm
devi solo sapere che lagat s'e' scordato di spiegargli l'uso del ;

:sisi: