Assuming you don't want to enter a query, you could do it this way:
I'm going to assume that you have extracted all the variables from the database already.
That should work for what your trying to do.Code:<?php $url_length = strlen($url); if($url == substr($source,0,($url_length-1))) { echo $fname; } ?>