我想用完全 php 语法编写一个 php 代码。html代码也应该用php编写。我很努力地写这个但失败了。任何人都可以帮助解决这个问题。请立即告诉我写语法。注意:base_url 和 slugify 是函数。现在请看这段代码。我让你现在更容易理解
<?php
while ($row = mysql_fetch_array($result_pag_data))
{
$htmlmsg=htmlentities($row['Name']); //HTML entries filter
//$msg .= "<li><b>" . $row['Sku'] . "</b> " . $htmlmsg . "</li>";
$msg .= "<div class='deal'><div class='deal-left'>
<img src=".$row["ImageURL"]." width='100px'/>
</div>
<div class='deal-right'>
//------- I want below line in correct syntan of php. Right Now is not a right syntax.
<h2><a href='base_url'deals/'slugify".$row['Merchant']."'/'slugify".$row['Name']."'/'".$row['id']."'>".substr($row['Name'], 0,50)."</a></h2>
//--------
<div class='deal-info'>SKU</div>
?>