sviesc Posted February 25, 2004 Report Share Posted February 25, 2004 ir scripts <? if (sizeof($_POST)>0){ mysql_query("INSERT INTO coments (name, text, raxta_id, date, ip, email, http) VALUES ('$names','$comments1', '$raxta_id', '$datumsc','$ip','$email','$http')") OR die(mysql_error()); header("Location: read.php?id=$id"); ?> problēmas ir ar tūlītēju pāraderesāciju Link to comment Share on other sites More sharing options...
sorehead Posted February 25, 2004 Report Share Posted February 25, 2004 pietruukst nosleedzosais " } " if'am Link to comment Share on other sites More sharing options...
sviesc Posted February 25, 2004 Author Report Share Posted February 25, 2004 ta ne tur bij tā proba proba bija tajā ka pēc posta forma pārsūtija uz to pašu failu no kura posts un pēc tam negribēja to header izmantot nācās izmantot divus failus ;) Link to comment Share on other sites More sharing options...
рпр Posted February 25, 2004 Report Share Posted February 25, 2004 nezinu kur tev probleema, bet es personiigi aiz header (location) ielieku veel exit;, jo meedz gadiities ka veel peec headera izpildaas kods un tad nav labi. Link to comment Share on other sites More sharing options...
Recommended Posts