Hi all
I've written a function and everything was great. Now i'm having to put the stripslashes command in as the server is suddenly adding slashes!
Anyone got any ideas what i should bee looking at to solve this mistery ?
function showdetails($table,$agency)
{
$sql = "SELECT * from $table WHERE ";
if($table =="applications")
{
$sql .="agency";
}else {
$sql .="name";
}
$agency = stripslashes($agency); <-HERE
$sql .= "= $agency";
$field_list = mysql_list_fields("jobs","$table");
$num_fields = mysql_num_fields($field_list);
$result = mysql_query($sql);
thanks
Gary Mailer