Home page
 
 Home 
 ASP 
 PHP 
 SQL 
 HTML 
 JavaScript 
 Search 
 Contact 
 
Search
or browse popular tags
Subscription

Sign up for the free email newsletter for new tips, tutorials and more. Enter your email address below, and then click the button.

Privacy Policy

RSS Twitter

All pages tagged OR

PHP: Sending Email (Text/HTML/Attachments)

So, you want to send automated email messages from your PHP application. This can be in direct response to a user's action, such as signing up for your site, or a recurring event at a set time, such as a monthly newsletter. Sometimes email contains file attachments, both plain text and HTML portions, and so on. To understand how to send each variation that may exist on an email, we will start with the simple example and move to the more complicated. More...

Tags: PHP SEND EMAIL TEXT HTML DUAL FORMAT ATTACHMENT SMTP SERVER Hits: 1071093 Comments: 20

JavaScript: Form Validation

Client side form validation usually done with javascript. For the majority of your users, JavaScript form validation will save a lot of time up front. More...

Creating Word, Excel and CSV files with PHP

In this article we demonstrate several ways to create Microsoft Word and Excel documents, and also CSV files using PHP. Learn how to create files using HTTP headers, COM objects, OpenOffice templates, fputcsv function. More...

Tags: PHP CREATE WORD EXCEL CSV FILE Hits: 391673 Comments: 0

Back Up and Restore a MySQL Database

If you're storing anything in MySQL databases that you do not want to lose, it is very important to make regular backups of your data to protect it from loss. This tutorial will show you two easy ways to backup and restore the data in your MySQL database. You can also use this process to move your data to a new web server. More...

Tags: MYSQL BACKUP RESTORE ZIP SHELL PHPMYADMIN HOW-TO Hits: 365230 Comments: 3

PHP: Create Thumbnail Images

This tutorial will describe how to create thumbnail images on the fly using PHP. Furthermore you will learn how to process a whole folder of images and create their thumbnails. Since this requires the GD library, you will need an installation of PHP with at least GD 2.0.1 enabled. More...

Tags: PHP DYNAMIC IMAGE THUMBNAIL GENERATION GD2 STORE Hits: 335537 Comments: 46

PHP: How to Encrypt Passwords in the Database

If you are developing a password-protected web site, you have to make a decision about how to store user password information securely. This article will show you how to encrypt user passwords with md5 algorithm and how to start using encrypted passwords if you already have users' database ready. More...

PHP: Dynamic Image Generation

Creating images on the fly can be a very useful skill. In this tutorial we will show you how to get quite interesting and useful effects using image handling functions. We will review two practical tasks: creating security images (captcha) on the fly and building a bar chart using numerical values retrieved from MySQL database. More...

Tags: DYNAMIC IMAGE GENERATION GD CAPTCHA GRAPH STORE CACHE Hits: 166958 Comments: 20

HTML: How to Control Tab Order

All elements (except hidden elements) in the HTML form are part of the form's tab order. When the user presses the Tab key, the browser shifts the input focus from element to element in order the elements appear in the HTML code. However, sometimes you want the tab order to flow a little differently. More...

Tags: HTML CONTROL ORDER TABINDEX ATTRIBUTES Hits: 166834 Comments: 1

Access: Format Function

In Access, the Format function returns a string containing an expression formatted according to instructions contained in a format expression. More...

Tags: ACCESS FUNCTION FORMAT EXPRESSION Hits: 166509 Comments: 6

JavaScript: How to disable the Enter key on HTML form

Normally when you have a form with several text input fields, it is undesirable that the form gets submitted when the user hits ENTER in a field. Some people are pressing the enter key instead of the tab key to get to the next field. They often do that by accident or because they are accustomed to terminate field input that way. If a browser regards hitting ENTER in a text input field as a request to submit the form immediately, there is no sure way to prevent that. More...

Tags: JAVASCRIPT FORM ENTER KEY DISABLE CONTROL INPUT Hits: 150767 Comments: 23

Sending email with ASP

In this article we demonstrate how to generate and send emails with ASP using CDOSYS - Microsoft's improved interface for SMTP email. You will learn how to send text and html emails, emails with attachments, use a remote server, load recipients from a database, set the priority / importance of an email and request a read/return receipt. More...

Form Processing with PHP

One of the best features of PHP is possibility to respond to user queries or data submitted from HTML forms. You can process information gathered by an HTML form and use PHP code to make decisions based off this information to create dynamic web pages. In this tutorial we will show how to create an HTML form and process the data. More...

Tags: PHP FORM PROCESSING GET POST TIPS DYNAMIC Hits: 115404 Comments: 11

PHP: Working with Directories

As is necessary for any language, PHP has a complete set of directory support functions. PHP gives you a variety of functions to read and manipulate directories and directory entries. Like other file-related parts of PHP, the functions are similar to the C functions that accomplish the same tasks, with some simplifications. This tutorial describes how PHP handles directories. You will look at how to create, remove, and read them. More...

Tags: PHP PHP5 DIRECTORIES FILES FUNCTIONS RECURSION ITERATORS Hits: 109553 Comments: 2

BBCode editor

As soon as you've decided to implement BBCode in your software product, we propose you to examine the jquery.BBCode plugin. This Jquery library plugin is a simple BBCode editor with preview option, which can be easily placed on any website. More...

Tags: BBCODE EDITOR PREVIEW Hits: 94298 Comments: 0

ASP: How to connect to MS SQL Server database

In this tutorial we will show you how to connect to a MS SQL Server database using a DSN and without a DSN. More...

Tags: ASP CONNECTION DATABASE MSSQL DSN DRIVER RECORDSET SQL Hits: 90904 Comments: 5

How to create a dump of MySQL database in one click

Your users probably asked you to add an option to export the whole database to SQL file. This can be done in phpMyAdmin or Navicat of course but your users want something simpler than that. More...

Tags: PHP MYSQL BACKUP DUMP EXPORT Hits: 87607 Comments: 0

PHP: Blocking access to the login page after three unsuccessful login attempts

Sometimes you need to add an extra protection to password-protected website. This article explains how access to the login page can be restricted after three unsuccessful login attempts. This schema uses visitors IP address to store log attempts in the database and block access to login feature for 30 minutes after third unsuccessful attempt. More...

ASP: How to Encrypt Passwords in the Database

If you are developing a password-protected web site, you have to make a decision about how to store user password information securely. This article will show you how to encrypt user passwords with md5 algorithm and how to start using encrypted passwords if you already have users' database ready. More...

ASP: How to connect to MySQL database

In this tutorial we will show you how to connect to MySQL database using a DSN and without a DSN. More...

PHP: How to Sort an Array

It is often necessary to arrange the elements in an array in numerical order from highest to lowest values (descending order) or vice versa (ascending order). If the array contains string values, alphabetical order may be needed. Sorting a one-dimensional arrays is quite easy. More...

Tags: PHP ARRAYS SORTING INDEXED ASSOCIATIVE REVERSE NUMBER STRING Hits: 63201 Comments: 2

PHP: Looping Statements

PHP performs several types of repetitive operations, called "looping". Loops are set of instructions used to repeat the same block of code till a specified condition returns false or true depending on how you need it. This tutorial shows the basic idea on how to use looping statements in PHP, along with examples, and descriptions of the examples. More...

Tags: PHP LOOPING FOR WHILE DO...WHILE FOREACH BREAK CONTINUE LOOPS Hits: 55664 Comments: 1

ASP: How to process the data submitted from HTML form

The great advantage of ASP is possibility to respond to user queries or data submitted from HTML forms. You can process information gathered by an HTML form and use ASP code to make decisions based off this information to create dynamic web pages. This tutorial demonstrates how to create an HTML form and process the data. More...

Access: Count Function

In Access, the Count function calculates the number of records in a select query. More...

Tags: ACCESS FUNCTION COUNT QUANTITY RECORDS SELECT QUEY Hits: 47523 Comments: 0

SQL: ORDER BY

The Order By clause imposes an order on the query results. More...

JavaScript: Loops

JavaScript performs several types of repetitive operations, called "looping". Loops are set of instructions used to repeat the same block of code till a specified condition returns false or true depending on how you need it. This tutorial shows the basic idea on how to use looping statements in JavaScript, along with examples, and descriptions of the examples. More...

ASP: Looping Statements

ASP performs several types of repetitive operations, called "looping". Loops are set of instructions used to repeat the same block of code till a specified condition returns false or true depending on how you need it. This tutorial shows the basic idea on how to use looping statements in ASP, along with examples, and descriptions of the examples. More...

What is PHP?

PHP stands for Hypertext Preprocessor and is a server-side language. This article introduces you to PHP. You will learn basic PHP syntax, what it looks like, and possibilities that PHP provides you with. More...

ASP: Multidimensional Arrays

Arrays do not have to be a simple list of keys and values; each location in the array can hold another array. This way, you can create a multi-dimensional array. The reason you may use this type of array is when you have records of each item. For example, car, year, price,... and you want display one record at a time. In this article principles of using two-dimensional arrays are explained and source code defining two-dimensional array and displaying the array values on the web page is given. More...

Tags: ASP ARRAYS MULTIDIMENSIONAL MATRIX RECORDS UBOUND Hits: 40257 Comments: 2

ADO and ADO.NET Connection Strings

Connection strings are string variables which contain database connection information and then passed to ADO which will interpret them and act accordingly. Since there are going to be passed to ADO, they need to be in a comprehensible for ADO format. This tutorial was created as an easy reference of various ADO and ADO.NET connection strings for the most popular database types. More...

Oracle Connection Strings

Oracle ODBC and OLEDB connection strings More...

Tags: ORACLE ODBC OLEDB CONNECTION STRINGS DATABASE Hits: 35518 Comments: 0

SQL: INSERT Statement

The Insert Into statement can be used to append a record to a table or to append multiple records from one table to another. More...

Tags: SQL INSERT QUERY SINGLE MULTIPLE RECORDS TABLE Hits: 28116 Comments: 2

JS: Set Focus to First Available Form Control

Sometimes it is necessary to set the focus to the first available form control. The problem is that complex web pages can contain multiple forms and each form individually can contain hidden or disabled elements and controls that cannot accept focus. In this tutorial we will create a function which iterates through all forms until it finds the first available form control. More...

Tags: JAVASCRIPT FORM AVAILABLE CONTROL FOCUS ITERATION Hits: 27771 Comments: 4

Access: First Function

In Access, the First function return a field value from the first record in the result set of a query. More...

Tags: ACCESS FUNCTION FIRST RECORDSET RESULT Hits: 26292 Comments: 1

ASP Dictionary Object

The Dictionary object is used to store name/value pairs (referred to as the key and item respectively). The Dictionary object is like an associative array, but with its own built-in functionality that looks after the basic tasks of storing and manipulating the data, and sizing for the required number of elements. More...

Access: StrConv FunctionAccess: StrConv Function

In Access, the StrConv function convert a string to upper case, lower case, proper case, or several other formats. More...

Tags: ACCESS FUNCTION STRCONV UPPERCASE LOWERCASE FORMAT CONVERT Hits: 25010 Comments: 0

SQL: SELECT statement

The Select statement allows you to retrieve records from one or more tables in your database. More...

Tags: SQL SELECT RETRIEVE RECORDS DATABASE TABLE Hits: 22240 Comments: 0

SQL: UPDATE Statement

The Update statement allows you to update a single record or multiple records in a table. More...

Tags: SQL UPDATE QUERY SINGLE MULTIPLE RECORDS Hits: 21359 Comments: 0

Access: Last Function

In Access, the Last function return a field value from the last record in the result set of a query. More...

Tags: ACCESS FUNCTION LAST RESULT RECORDSET QUERY Hits: 21294 Comments: 0

ASP: How to connect to database with a DSN

DSN stands for 'Data Source Name'. It is an easy way to assign useful and easily rememberable names to data sources which may not be limited to databases alone. In this tutorial we will show you how to connect with a DSN to an Access database called 'examples.mdb' and retrieve all the records from the table. More...

SQL: GROUP BY

The Group By clause of the Select statement lets you split up the values in a column as a whole. More...

Tags: SQL GROUPBY QUERY COMBINE RECORDS AGGREGATE SUM COUNT MIN MAX Hits: 19175 Comments: 0

ASP Application Object

The Application object is used to control and manage all items that are available to all users of an Active Server application. The Application items can be variables needed for all users in the application, or they can be instantiated objects that provide special server-side functionality. In this tutorial the syntax, collections, methods and events of the ASP Application object are described. More...

ASP: Constants

Constants just as variables are used to store information. The main difference between constants and variables is that constant value can not be changed in the process of running program. If we attempt to re-assign the value of the constant we'll get a run time error. More...

Tags: ASP CONSTANTS VARIABLES DECLARING CONST KEYWORDS Hits: 17882 Comments: 1

SQL Data Types

The following is a list of general SQL datatypes that may not be supported by all relational databases. More...

Tags: SQL DATA TYPES SUPPORTED RELATIONAL DATABASE Hits: 14681 Comments: 3

Record locking in Web applications

In this article we describe how to implement record locking in web applications. Because of the stateless nature of HTTP, you cannot really know whether the user left the page or is still looking at your site. We used the lock confirmation technique combined with lock expiration to solve this problem. More...

Tags: PHP RECORD LOCKING WEB APPLICATIONS Hits: 14155 Comments: 0

SQL: DELETE Statement

The Delete statement allows you to delete a single record or multiple records from a table. More...

Tags: SQL DE;ETE QUERY SINGLE MULTIPLE RECORDS TABLE Hits: 12727 Comments: 0

What is Javascript?

JavaScript is a cross-platform, object-oriented scripting language invented in web browsers to make web pages more dynamic and give feedback to your user. Adding JavaScript to your HTML code allows you to change completely the document appearance, from changing text, to changing colors, or changing the options available in a drop-down list, or switching one image with another when you roll your mouse over it and much more. More...

SQL: AND/OR conditions

The scope of the Where clause and the operators used with it can be extended by using the logical operators AND and OR. More...

Tags: SQL AND OR CONDITION LOGICAL OPERATORS SEARCH QUERY Hits: 11113 Comments: 0

ASP ASPError Object

The ASPError object is a new in ASP 3.0, and is available in IIS5 and later. It provides a range of detailed information about the last error that occurred in script in an ASP page. The ASPError object is only available through the GetLastError method of the Server object. In this tutorial the syntax and properties of the ASPError object are described. More...




Tags:

Add To: Add to dzone dzone | Digg this digg | Add to del.icio.us del.icio.us | Stumble it stumbleupon

  • Comments





Copyright © 2005-2014             www.WebCheatSheet.com All Rights Reserved.