[Solved] Parse error: syntax error, unexpected ‘else’ (T_ELSE) on line 10 [duplicate]


Remove the first else, add { and } and remove the ticks:

<?php 

include 'desciptions.php';
include 'title.php';
$rand=rand(0,67);

if($rand == 1) {
    $desciptions = $d1;
    $title = $m1;
} else if($rand == 2) {
    $desciptions = $d2;
    $title = $m2;
} else if($rand == 0) {
    $desciptions = $d0;
    $title = $m0;
}
?>

Also maybe fix desciptions to descriptions.

2

solved Parse error: syntax error, unexpected ‘else’ (T_ELSE) on line 10 [duplicate]