ok i have the following function...
function getHeader($section=null,$action=null,$id1=null,$id2=null,$id3=null,$limit=null,$error = null)
{ $link = "?";
$link .= ($section) ? "section=".$section."&" : "";
$link .= ($action) ? "action=".$action."&" : "";
$link .= ($id1) ? "id1=".$id1."&" : "";
$link .= ($id2) ? "id2=".$id2."&" : "";
$link .= ($id3) ? "id3=".$id3."&" : "";
$link .= ($limit) ? "limit=".$limit."&" : "";
$link .= ($error) ? "e=".$error."&" : "";
$link = substr($link,0,-1);
return $link;
}
being called like...
$header = getHeader("community","profile");
in the above example $header contains ?section=hE(some sort of filled in black square)&action=profile
I have tested this function throughly and it works fine in all other circumstances
also:
$header = getHeader("communi","profile"); /// works fine
$header = getHeader("communit","profile"); /// doesn't work either!!
for the record im running easy php on windows...
hope someone will be able to help!
cheers
stewart