Hi guys;
I created a site using the mssql codes but later for some reason I now have to recode the site using mysql codes.I am new to mysql world so please be gentle on me

.
I get this error "Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'SELECT * FROM resiml'
/tmken mysql/gallery.asp, line 66" when I try to access my page in the line 66. the code a little below and above line 66 is as this:
" <%
SayfalamaKayitSayi = 6
Rs1 = "SELECT * FROM resimler Limit "& iBaslangic &", "& SayfalamaKayitSayi
if Rs1.eof then
response.write "<br><b> NO Photos available !</b>"
else
iSayfa = Request.QueryString("p")
if Not Isnumeric(iSayfa) OR iSayfa = "" Then
iSayfa = 1
iBaslangic = 0
iBaslangic = (iSayfa-1)*SayfalamaKayitSayi
end if
rsmgs = "<b><a href=gallery.asp?page="&y&">["&y&"]</a></b> "
Do While Not Rs1.EOF
Response.Write "& rsmgs"
Rs1.MoveNext
Loop
%>"
and the line 66 is "if Rs1.eof then"
Please help me guys I am stuck here

..
Thanks for the replies.
STEAFFY