Give us another clue. What error did you get? 🙂
If you want to be able to use field names as array indices, I'd suggest using mysql_fetch_assoc() but I don't think that's actually your problem here. It may be that your select doesn't actually find anything, so there is no row for any fetech to return. That could generate an error at that line.
I would suggest adding
echo $mysql;
before you call mysql_query just to make sure that the query looks like what you expect.