Forum » » Le coin des codeurs » » Requete SQL for beginners
Posté : 17 avr. 2004 à 00:30 
ok et apres j'fais ça ?
if [$type_pub=="pub_immediate"] {
$resultat = mysql_query["SELECT topicforum FROM topics WHERE topicid='$topic'"];
$row = mysql_fetch_row[$resultat];
$result = mysql_query["INSERT INTO stories VALUES [NULL, '$catid', '$aid', '$subject', now[], '".meta_lang[$hometext]."', '".meta_lang[$bodytext]."', '0', '$row[0]', '0', '$topic','$author', '".meta_lang[$notes]."', '$ihome', '0', '$date_finval','$epur']"];
$result = mysql_query["INSERT INTO forumtopics VALUES [NULL, '$subject', '$uid', now[], '1', '$row[0]', '0', '0']"];
$result = mysql_query["INSERT INTO posts VALUES [NULL, '0', '', '', '$row[0]', '$uid', '".meta_lang[$bodytext]."', now[], '', '', '1']"];
}
Cet article provient de NPDS
https://www.npds.org/viewtopic.php?topic=11116&forum=5