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

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -