<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim rs_users Dim rs_users_numRows Set rs_users = Server.CreateObject("ADODB.Recordset") rs_users.ActiveConnection = MM_piba_STRING rs_users.Source = "SELECT * FROM users" rs_users.CursorType = 0 rs_users.CursorLocation = 2 rs_users.LockType = 1 rs_users.Open() rs_users_numRows = 0 %> <% Dim rs_members Dim rs_members_numRows Set rs_members = Server.CreateObject("ADODB.Recordset") rs_members.ActiveConnection = MM_piba_STRING rs_members.Source = "SELECT * FROM members ORDER BY start DESC" rs_members.CursorType = 0 rs_members.CursorLocation = 2 rs_members.LockType = 1 rs_members.Open() rs_members_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 4 Repeat1__index = 0 rs_members_numRows = rs_members_numRows + Repeat1__numRows %> <% ' *** Validate request to log in to this site. MM_LoginAction = Request.ServerVariables("URL") If Request.QueryString<>"" Then MM_LoginAction = MM_LoginAction + "?" + Server.HTMLEncode(Request.QueryString) MM_valUsername=CStr(Request.Form("username")) If MM_valUsername <> "" Then MM_fldUserAuthorization="access" MM_redirectLoginSuccess="home.asp" MM_redirectLoginFailed="error.asp" MM_flag="ADODB.Recordset" set MM_rsUser = Server.CreateObject(MM_flag) MM_rsUser.ActiveConnection = MM_piba_STRING MM_rsUser.Source = "SELECT username, password" If MM_fldUserAuthorization <> "" Then MM_rsUser.Source = MM_rsUser.Source & "," & MM_fldUserAuthorization MM_rsUser.Source = MM_rsUser.Source & " FROM users WHERE username='" & Replace(MM_valUsername,"'","''") &"' AND password='" & Replace(Request.Form("password"),"'","''") & "'" MM_rsUser.CursorType = 0 MM_rsUser.CursorLocation = 2 MM_rsUser.LockType = 3 MM_rsUser.Open If Not MM_rsUser.EOF Or Not MM_rsUser.BOF Then ' username and password match - this is a valid user Session("MM_Username") = MM_valUsername If (MM_fldUserAuthorization <> "") Then Session("MM_UserAuthorization") = CStr(MM_rsUser.Fields.Item(MM_fldUserAuthorization).Value) Else Session("MM_UserAuthorization") = "" End If if CStr(Request.QueryString("accessdenied")) <> "" And false Then MM_redirectLoginSuccess = Request.QueryString("accessdenied") End If MM_rsUser.Close Response.Redirect(MM_redirectLoginSuccess) End If MM_rsUser.Close Response.Redirect(MM_redirectLoginFailed) End If %> Padre Island Business Association
 

Home
Members
Bulletin
Events
Contact Us

Welcome to the Padre Island Business Association!

The Padre Island Business Association is a not-for-profit organization whose purpose is to advertise and promote Padre Island, and to advance the interest of the Padre Island business community.
Join us, and become a PIBA member!
Download an online membership application MSWord  today.
Download an online membership application PDF today.
The Membership section of the website is Under Construction.

PIBA Updates
New PIBA Members
<% DIM Conn,strConn,SQLstmt,RSa set Conn = server.createobject("adodb.connection") strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/data/piba.mdb") Conn.open strConn SQLstmt = "SELECT news.headline, news.event FROM news WHERE (((news.start_date)<=Now()-1) AND ((news.end_date)>=Now()-1) AND ((news.authorized)='x')) ORDER BY news.counter;" Set RSa = conn.execute(SQLstmt) if RSa.EOF=true then response.write "This month news story has lapsed.
Notify PIBA that a new story needs to be posted.
Thank You" else Response.Write("

") Response.Write RSa(0) Response.Write("") Response.Write RSa(1) end if %>

<% Dim i DIM RS set Conn = server.createobject("adodb.connection") strConn = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/data/piba_mem.mdb") Conn.open strConn SQLstmt = "SELECT members.member, members.member_type, members.website FROM members ORDER BY members.id DESC;" Set RS = conn.execute(SQLstmt) If err.number>0 then response.write "VBScript Errors Occured:" & "

" response.write "Error Number=" & err.number & "

" response.write "Error Descr.=" & err.description & "

" response.write "Help Context=" & err.helpcontext & "

" response.write "Help Path=" & err.helppath & "

" response.write "Native Error=" & err.nativeerror & "

" response.write "Source=" & err.source & "

" response.write "SQLState=" & err.sqlstate & "

" end if IF conn.errors.count> 0 then response.write "Database Errors Occured" & "

" response.write SQLstmt & "

" for counter= 0 to conn.errors.count response.write "Error #" & conn.errors(counter).number & "

" response.write "Error desc. -> " & conn.errors(counter).description & "

" next else For i = 0 To 5 Response.Write("

  ") Response.Write RS(0) Response.Write(" - ") Response.Write RS(1) Response.Write ("
  ") Response.Write RS(2) Response.Write ("") RS.MoveNext Next end if %>

 
PIBA
 
 
Username:
 
Password:
 
PIBA

MEMBERSHIP APPLICATION
HOME
| MEMBERS | BULLETIN | EVENTS | CONTACT
Copyright © 2008. All Rights Reserved. Padre Island Business Assocation

www.padreislandbusiness.org

<% rs_users.Close() Set rs_users = Nothing %> <% rs_members.Close() Set rs_members = Nothing %>