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

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

ubuntu - Bash Script to Check That Files Are Being Created -