here i using external database to get image location by using ID - i have external file called process.php
here is example for database table
http://im33.gulfup.com/M9OCy.png
and here is php code that i using and working fine
$query=mysql_query("SELECT * FROM titoex WHERE id=$GetPicId") or die(mysql_error());
$result=mysql_fetch_array($query);
$PicLocation =$result['location'];
i need to make it with wordpress , if i upload image with wordpress attachment i can get it by id too i was trying to search in wordpress database but i can`t find table , i really need some help :(