php - Get the .html after the echo -
php - Get the .html after the echo -
how link of .html
after .$obj->product_name.
?
i have tried bellow. shows link of http://.com/forbiden
insted of http://.com/forbiden rice.html
cuts rice.html
echo '<span class="product-name"><a href=products/'.$obj->product_name ."html". 'target=_blank>'.$obj->product_name.'</a></span></br>';
try urlencode($obj->product_name)
hope helps :)
php
Comments
Post a Comment