Jump to content
php.lv forumi

syntax error


raivels

Recommended Posts

Sceicinaati!

 

Kods izskataas saadi, sajaa gadiijumaa viss darbojas burviigi -

<h1>

<?php

$a = 1 + 3;

$b = 3 + 4;

$days = $a + $b;

echo "Welcome back! It has been ";

echo $days;

echo " since your last visit!";

?>

</h1>

 

 

 

Bet sajaa gadiijumaa uzraada saadu erroru - Parse error: syntax error, unexpected T_ECHO on line 4

<h1>

<?php

$monkeys = 5 - 1

echo "I have ";

echo $monkeys;

echo " in a barrel";

?>

</h1>

 

Kur ir probleema?

Link to comment
Share on other sites

×
×
  • Create New...