[Solved] Image Link To External Site

Hi All,

i want to ask something about external site.

in login view i add image that can go to other site




$adv = Advertise::model()->findAll(array('order'=>'adv_no asc'));

						

foreach($adv as $rw)

{

	echo '<a href="'.$rw->adv_link.'"><img id="pict" src="'.$rw->adv_pic.'"></a>';

}




i used like that and the output was this url -> localhost/webCME/www.google.com

how to remove the project path i just want to click the image and it redirect to www.google.com

Can someone help me ?

Thanks.

add protocol (http://) at the beginning…

Thanks redguy, it’s working now