解析错误:语法错误,意外的';'…第87行[重复]

时间:2022-05-14 22:43:15

This question already has an answer here:

这个问题已经有了答案:

My problem is this,the problem I checked more time but not found the problem,why give me this error.

我的问题是,我检查了更多的时间但没有发现问题,为什么给我这个错误。

$i=0;
    while(count($profile->vehicles)>=$i)
    {
    echo '
    <div class="name col-md-4 col-lg-4">
            <h3>'.$profile->vehicles['cars'][$i]['name'].'</h3>
    </div>
    <div class="post_date col-md-3 col-lg-3">
            <h3>'.date("d/m/Y", strtotime($profile->vehicles['cars'][$i]['post_date']).'</h3>
    </div>
    <div class="views col-md-3 col-lg-3">
            <h3>Views:<span>'.$profile->vehicles['cars'][$i]['views'].'</span></h3>
    </div>
    <div class="edit col-md-2 col-lg-2">
            <h3><a href="?page=profile&parent=edit&id='.$profile->vehicles['cars'][$i]['id'].'" >Edit</a></h3>
    </div>
';<--Here is the error
$i++;
}

1 个解决方案

#1


0  

Problem is solved.

问题已经解决了。

<h3>'.date("d/m/Y", strtotime($profile->vehicles['cars'][$i]['post_date'])).'</h3>

#1


0  

Problem is solved.

问题已经解决了。

<h3>'.date("d/m/Y", strtotime($profile->vehicles['cars'][$i]['post_date'])).'</h3>