[eluser]R_Nelson[/eluser]
Code:
<?php
$user_path = base_url()."members/$id/image01.jpg";
echo $user_path;
if(!file_exists($user_path))
{
$id = 0;
}
?>
in my root i have a directory
members in that is directory's that are the same as the user ID the directory 1 has image01.jpg in it and 2 dose not when the ID is 2 i don't display a graphic at all but it should be showing the default graphic stored in 0. I'm not sure why i'm getting this result it works fine in normal PHP.