4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by diafol
0

Hi

we can do it with the
pathinfo method very easily.

$part_url = pathinfo($_SERVER;
print_r($part_url);

this will print insurance only that i exactly need.

Hi Try this one

$StrUrl = "http://localhost/project/insurance.php?link_id=NDI=";
$Strvalue = explode("/",$StrUrl);
print "<Pre>";
print_r($Strvalue);
print "</Pre>";

$Strvalue1 = explode(".php",$Strvalue[count($Strvalue)-1]);
print "<Pre>";
print_r($Strvalue1);
print "</Pre>";


BaburajSNS
Securenext

0

ok, can we select only word NDI? i want to select informations with id (the same name in url (id=NDI)). please, help, thanks! :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.