• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems with url

#1
[eluser]Unknown[/eluser]
i am creating hyperlink with following code-:


Code:
anchor("products/categorised_products/'".$item['Product_Id']."'/'".$title['image_size']."'",img(array('src'=>"http://buildershardware.co.in/product_images/'".$item['product_thumb_image']."'",'alt'=>'IMAGE','height'=>'130','width'=>'130')))

but in the resulted url dynamically passed segments like $item['Product_Id'] get single quotes automatically which prevents image to get loaded

#2
[eluser]PravinS[/eluser]
try replacing by this

Code:
anchor("products/categorised_products/".$item['Product_Id']."/".$title['image_size']."/",img(array('src'=>"http://buildershardware.co.in/product_images/'".$item['product_thumb_image']."'",'alt'=>'IMAGE','height'=>'130','width'=>'130')))

#3
[eluser]Unknown[/eluser]
thank you very much sir i got my solution


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.