I get the "id" from this statement:
<td valign="top" class="all_gray"><a href='Search_IMS.php?id=#' onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('#','','Letters/numbersign.gif',1)"><img src="Letters/numbersign2.gif" name="#" width="20" height="20" border="0"></a></td>
and call this call this code from "Search_IMS":
$name=$_GET['id'];
if ($name == "#")
{$result = mysql_query("SELECT FROM artist WHERE(artist_name LIKE '1%' OR artist_name LIKE '2%' OR artist_name LIKE '3%' OR artist_name LIKE '4%' OR artist_name LIKE '5%' OR artist_name LIKE '6%' OR artist_name LIKE '7%' OR artist_name LIKE '8%' OR artist_name LIKE '9%' OR artist_name LIKE '0%') ORDER BY artist_name"); }
else
{$result = mysql_query("SELECT FROM artist WHERE artist_name LIKE '$name%' order by artist_name");}
What I think should happen is the $name string should equal "#", but that doesn't seem to be happening. Any ideas as to what I am doing wrong?