iEntry 10th Anniversary Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register

Go Back   WebForumz.com > Blogs
Register All Albums Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read

Old

ASP Programming Tips and Technique

Posted October 26th, 2007 at 03:37 AM by Monie
Updated November 1st, 2007 at 06:05 AM by Monie
[ Option Explicit ]
  • <% Option Explicit %>
  • It is usually placed at the top of your asp page.
  • Option Explicit requires that all variable names be declared (with the Dim statement). Using Option Explicit to force variable declaration is good for a number of reasons.
  • Using Option Explicit forces you to declare all your variables before you use them. If you use a variable you haven't declared then an error
...
Most Reputable Member
Comments 0 Monie is offline
Old

Usefull Programming Code

Posted October 17th, 2007 at 01:17 AM by Monie
Updated November 1st, 2007 at 05:52 AM by Monie

[MySQL Database Connection and Recordset
(DNS-LESS Connection)]

<%
Dim connectionString, conn, rs
connectionString = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=localhost; DATABASE=mydatabase; OPTION=4; UID=root;PASSWORD=mypassword;"
Set conn
= Server.CreateObject("ADODB.Connection")
conn.Open(connectionString)

Set rs
= conn.Execute("SELECT * FROM userlist")
%>

Another way to
...
Most Reputable Member
Comments 0 Monie is offline

Search Engine Optimization by vBSEO 3.2.0 RC8