$result = mysql_query("SELECT * FROM visual WHERE codigo ='$codigo'") or die("Error SQL Visual: ".mysql_error());