<?php $uid = $_GET['title']; echo $uid; $query = mysql_query("SELECT id FROM songs WHERE titulo = '$uid'", $connect); echo $query; ?>