I am most likely very thickheaded but can you explain to me why you want to put
"<?php echo $row_Recordset1['Main_Img']; ?>/"
into a php variable?
As I have no idea where you intend to use this $config['fulls'] variable more then from your example code,
<a href="<?php echo "$url_path/$entry" ?>">
<img src="<?php echo "$filepath/$entry" ?>" alt="<?php echo $entry ?>"></a>
Why not use it in the same way but exchange $filepath/$entry with $row_Recordset1['Main_Img'] depending of course what is inside row_Recordset1.
Again, if you can show us what your intention is and what is inside $row_Recordset1['Main_Img'] we might be of more help.
You said earlier the you wanted to replace
$filepath = "thumbs";
with
$filepath = <?php echo $row_image_query'[T_ID]'; ?>
but maybe your meaning is that
$filepath = $row_image_query['T_ID'];
and then use it in your display section
<img src="<?php echo "$filepath/$entry" ?>" alt="<?php echo $entry ?>"></a>
Sorry for just rambling and not have any solution.