Gets MySQL server variables.
Gets the MySQL server version.
The concat() function can be used to concatenate strings.
This code snippet shows you how to load data from an Excel document.
This simple script will get the create script for a given table.
This is a simple Smtp class that can be used to send emails.
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.
This code snippet shows how to set and read a cookie.
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.
This class is a page counter. The count is stored in a text file on the server.
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.
This code snippet shows how to serve configuration settings from a json encoded file as class properties.
This code snippet shows how to serve configuration settings from a config.ini file as class properties.
This code snippet binds a php variable to an SQL statement using the bindParam() method of the PDOStatement object.
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.
This video tutorial shows how to create a simple HTML5 video player. Visit www.snippetbank.net for code snippets.
This tutorial shows you how to add a seek bar to an HTML5 player. The example follows on from part 1 and 2. Visit www.snippetbank.net for code snippets.
This video tutorial shows how to add a progress bar to the player created in part1. Visit www.snippetbank.net for code snippets.