the following code gives me an error at the mysql_fetch_array part..
anyone have any ideas?
function index() {
echo ("<P align=center>Please select an artist from the list below</P>");
while ($row = mysql_fetch_array($retid)) {
$artist = $row["artist"];
echo ("<P>$artist</p>"); }
}
function id() {
echo ("this is $artist.");
}
switch($id) {
case 1:
id();
break;
default:
index();
break;
}
cheers,
stew