dongren4758 2014-04-17 19:13 采纳率: 0%
浏览 36
已采纳

PHP解析错误:语法错误,意外','[关闭]

Hi guys can anyone help to figure out what's wrong in my code it showing unexpected ','

    $list1 .= '<tr onmouseover="this.style.backgroundColor=','#ffff66',';" onmouseout="this.style.backgroundColor=','#d4e3e5',';">
    <td>'.$ver.'</td><td>'.$ver2.'</td>
</tr>'; 
  • 写回答

5条回答 默认 最新

  • dqvrlgi3247 2014-04-17 19:20
    关注

    , is used for passing multiple parameters to echo, not for concatenating strings to add to be stored in a variable. use . instead

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?