我现在有了这个
en_title cell
huawei e160e best modem for mobile using, 3g hsdpa
UPDATE lang_temp
SET fi_content = CONCAT( '<a href="http://www.google.fi/search?hl=fi&source=hp&q=', en_title ,'&meta=&aq=f&oqnofollow" target=_blank>Google search...</a>')
WHERE en_content ='';
我需要将空格替换为+章程,并将值限制为15章。
结果我需要得到
<a href="http://www.google.fi/search?hl=fi&source=hp&q=huawei+e160e+best+f&meta=&aq=f&oqnofollow" target=_blank>Google search...</a>
怎么可能?谢谢!
答案 0 :(得分:1)
使用str_replace(“”,“+”,“你的网址”);用给定URL中的+替换空格