try to add a value into the $URL variable before the meta refresh line.
$URL="http://google.com";
data to be visible in the php when I extract from the database?
You have an echo inside the while cycle, this can ember the content from the sql field into your page. Just show the source code, you should see the contents.
If its not a secret, you can post a link where we can see the results.
If you explain your aim i might suggest you a more efficient way to do it.