waplet Posted May 25, 2007 Report Share Posted May 25, 2007 <?php switch ($id) { case 0: <iframe src="blabla"></iframe> break; { ?> rakstu šitā bet met erroru Parse error: parse error, unexpected '<' in C:\AppServ\www\index.php on line 104 Link to comment Share on other sites More sharing options...
bubu Posted May 25, 2007 Report Share Posted May 25, 2007 <iframe src="blabla"></iframe> ir invalīds (nekorekts) php kods. php kods no html koda ir attiecīgi jāatdala. Lūdzu atver savu tutoriāli/grāmatu/manuāli un palasi php pamatus pirms prasi šādus jautājumus. http://lv.php.net/manual/en/introduction.php#intro-whatis http://lv.php.net/manual/en/language.basic...-syntax.phpmode Link to comment Share on other sites More sharing options...
aldis Posted May 25, 2007 Report Share Posted May 25, 2007 <?php switch ($id) { case 0: echo ('<iframe src="'.$id.'"></iframe>'); break; { ?> k-ko tadu biji domajis?? vnk nejauc kopaa html ar php... :) vai nu atdali ar ?> <?php vai arii ja jaaiesaista ciklaa tad raksti caur echo! :) Link to comment Share on other sites More sharing options...
waplet Posted May 26, 2007 Author Report Share Posted May 26, 2007 paldies bet es rakstīju arī tā echo "<iframe src="blabla" ></iframe>" :D Link to comment Share on other sites More sharing options...
andrisp Posted May 26, 2007 Report Share Posted May 26, 2007 Ja gribi rakstīt tā, tad eskeipo pēdiņas, kas ir stringā. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 27, 2007 Report Share Posted May 27, 2007 waplet -> vienkarshi pieliec echo '<iframe src="blabla"></iframe>'; Link to comment Share on other sites More sharing options...
aldis Posted May 28, 2007 Report Share Posted May 28, 2007 php ir loti pateiciiga sintakse.. :) vienu vietu var uzrakstit vairakos variantos.. :) katrs izmanto sev saprotamako! :) buutiiba nemainaas.. :) iznjemot " " un ' ' Link to comment Share on other sites More sharing options...
Val Posted May 28, 2007 Report Share Posted May 28, 2007 Būtība mainās, ja starp ' un ' vēlas izmantot mainīgos. :) Link to comment Share on other sites More sharing options...
waplet Posted May 29, 2007 Author Report Share Posted May 29, 2007 elan es vnk nepierakstīju tagad bet tik un tā neiet ja bija tas pielikts! Link to comment Share on other sites More sharing options...
hackerman Posted May 29, 2007 Report Share Posted May 29, 2007 Nu jā... "blabla bla" vietā tev jāliek faila nosaukums :D Link to comment Share on other sites More sharing options...
waplet Posted June 4, 2007 Author Report Share Posted June 4, 2007 zinu vobshim sen jau viss ir tagad close! Link to comment Share on other sites More sharing options...
Recommended Posts