SNIPPETBANK.NET FOLLOW US ON TWITTER

Latest Snippets

Get Server Variables MySQL

Gets MySQL server variables.

Get MySQL Server Version MySQL

Gets the MySQL server version.

Concatenate Strings With The Concat Function MySQL

The concat() function can be used to concatenate strings.

Load Data From An Excel Document ASP.Net - C#

This code snippet shows you how to load data from an Excel document.

Show Create Statement MySQL

This simple script will get the create script for a given table.

Simple Smtp Class PHP

This is a simple Smtp class that can be used to send emails.

GridView Component PHP

This code snippet demonstrates how to develop a control that can dynamically generate an HTML table from a database table. The example also shows the use of a DataSource class which encapsulates the database connection and paging logic.

Simple Cookie Example PHP

This code snippet shows how to set and read a cookie.

Guestbook Class PHP

This class can be used to setup a simple guestbook. The class allows you to add comments, get comments and delete comments. This example uses a database to store the comments.

File Based Page Counter PHP

This class is a page counter. The count is stored in a text file on the server.

File Based Authentication Example 1 PHP

This code snippet demonstrates how to implement file based authentication. Users are stored in a text file. Username and password is separated by a pipe. This example uses HTTP Authentication.

Json Configuration Parser Class. PHP

This code snippet shows how to serve configuration settings from a json encoded file as class properties.

Ini File Configuration Parser Class PHP

This code snippet shows how to serve configuration settings from a config.ini file as class properties.

Bind Param To SQL Statement PHP

This code snippet binds a php variable to an SQL statement using the bindParam() method of the PDOStatement object.

Execute A Prepared SQL Statement PHP

This code snippet shows how to use the prepare() method to prepare an SQL statement. The statement is then executed using the execute() method. Finally the fetchAll() method is used to return the data.

Videos