
<?php $partie = $row_statistic[partie]; $zdrapki=array('<EMBED src="moon.swf" width="250" height="100"></EMBED>','<EMBED src="moon_30.swf" width="250" height="100"></EMBED>','<EMBED src="moon_50.swf" width="250" height="100"></EMBED>'); do { $los=rand(0,2); $zdrapka.=$zdrapki[$los]; $i++; } while($i<=0); $lzdrapka = $zdrapka; echo $lzdrapka; if($lzdrapka == '<EMBED src="moon.swf" width="250" height="100"></EMBED>') mysql_query("UPDATE users1 SET points=points+10 WHERE id=$_SESSION[userid]") or die(mysql_error()); if($lzdrapka == '<EMBED src="moon_30.swf" width="250" height="100"></EMBED>') mysql_query("UPDATE users1 SET points=points+30 WHERE id=$_SESSION[userid]") or die(mysql_error()); if($lzdrapka == '<EMBED src="moon_50.swf" width="250" height="100"></EMBED>') mysql_query("UPDATE users1 SET points=points+50 WHERE id=$_SESSION[userid]") or die(mysql_error()); mysql_query("UPDATE users1 SET partie=partie-1 WHERE id=$_SESSION[userid]") or die(mysql_error()); "); ?>
Element sie losuje i dodaje pkty. Ale gdy dodałem
<?php $partie = $row_statistic[partie]; ?>
Już pisze ze syntax error co tu poprawić?
