im fairly new at this too but this is how ive been doing it... after you select the table you have to query the database using "mysql_query()" what you can do is access your mysql database and use a regular query string till you get the query string that you need such as [code]"SELECT league , country FROM tablename WHERE picture = "(some kind of identifer here)"[/code] that assumes the table your searching is called "tablename". it returns the fields league and country once you has a query string that returns that 2 values you want, put that into a value in your php if the query above worked then it would look like this [code]$findLeagueCountry = "SELECT league , country FROM tablename WHERE picture = "$picture";[/code] you should make some kind of variable, such as "$picture", that holds a value that corresponds with the picture then put that query string into the "mysql_query()" and report that data into a $result variable like this [code]$result = mysql_query($findLeagueCountry);[/code] then you have to pull the information out of the $result something like this [code]while($row = mysql_fetch_array($result)) { echo ($row['league']) ; echo ("<br>") ; echo ($row['country']) ; }[/code] that *should* loop through the results and print out the results like i said im kinda new at this too but this is how ive been doing it with some login scripts ive been working on but it should give you a start any questions just ask