I am trying to figure out why I can't include a function into this. I am trying to make it so $client
will make it's way into the request string. http://test.com/next.xml?file=$client&test=againtest
$client
IS DEFINED as text from my database.
function update($pro){
$request = 'http://test.com/next.xml?file='.$client'&'.'test='.urlencode($pro);;
$postargs = 'status='.urlencode($pro);
return $this->process($request,$postargs);
}
Is there a certain way to do this? This doesn't give me any PHP errors, but it's not working right. If I remove '.$client.'
and replace it with just plain text such as text
it works, but when I include it as a function, it won't work.