2016-10-02 14 views
-3

私の問題はこれです、私は時間をチェックしましたが、問題が見つかりませんでした。どうしてこのエラーが出るのですか?構文解析エラー:予期しない構文エラー ';' ... on line 87

$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++; 
} 
+0

はい私はすべてを読んだが、何もしなかった。 –

+0

'date'関数の') 'を閉じる –

+0

Thx。問題は解決されました! –

答えて

0

問題を解決しました。

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