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

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

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