Help with PHP data types?

Matt

New member
Hi,
I'm trying to use the value of a GET request variable in PHP. I am using $_GET['varname'] which I need to return a string. However, when I use it, like in echo $_GET['varname']; it prints nothing (sometimes a space).
I can print it using print_r($_GET['varname']); but I am not wanting to simply print it, as I am wanting to use the values in a sql funtion. I have tried array_reduce(), which says that it requires $_GET['varname'] to be an array. What do I need to do to convert it to a normal string?
Heartfelt thanks in advance
 
Back
Top