PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$image_path = "members/".$adv_username.".jpg";
//and then add that to your sql statement:
$sql = "SELECT * FROM tablename WHERE fieldname=$image_path";
$image_path = "members/".$adv_username.".jpg";
//and then add that to your sql statement:
$sql = "SELECT * FROM tablename WHERE fieldname=$image_path";
do all path's stored in the table have /members/ in them? If so, then what's the point of storing that? The script can automatically tack that on, freeing up potentially many many bytes of stored redundant data.