background preloader

Reference

Facebook Twitter

1 Reference Manual :: 5.5.1 User Names and Passwords. Authentication - Using LDAP (AD) for MySQL authenication. Check MySql Database Hourly and send email ASAP. [PHP] Passing values/variables via submit button - Web Coding. 1 Reference Manual. Free Address Book Script ( PHP + MySQL ) Ver 1.18 ( Security patch applied ) This is a free Address Book PHP script with a MySQL database. This script allows users to search, view, add, edit, and delete address entries from a web browser.

Each user can have a different login username. It's very easy to add/remove fields to/from the script. In fact, I've seen others using this script to store something totally different from addresses. You can customize Address Book Script online and/or manually. To manually customize it, please see Customization Quick Guide. To customize online, use Address Book Builder, which guides you through the steps of building a custom version of Address Book Script.

Ajax Fileup Addon for Address Book Script Monday, August 12, 2013 Address Book Script: Converting a Text Field to a Date Field To convert a text field to a date field, open web/codelib/asc/df.fl. The following example is a typical text field definition: (example) Edit the value of XA_CLASS and XA_SEARCH, and add XA_FORMAT line like shown below: <? Top. Top 20+ MySQL Best Practices. Database operations often tend to be the main bottleneck for most web applications today. It's not only the DBA's (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. In this article, I'll list some MySQL optimization techniques for programmers. Before we start, be aware that you can find a ton of useful MySQL scripts and utilities on Envato Market. Most MySQL servers have query caching enabled.

It's one of the most effective methods of improving performance, that is quietly handled by the database engine. When the same query is executed multiple times, the result is fetched from the cache, which is quite fast. The main problem is, it is so easy and hidden from the programmer, most of us tend to ignore it. The reason query cache does not work in the first line is the usage of the CURDATE() function. After adding the index to the group_id field: SQL Server Database Access with IIS. Use ASP and ADO to access your database Most Web applications built for the Internet or corporate intranets and extranets require a database for data storage and retrieval. Microsoft SQL Server is a fantastic database server for Web-based applications. However, IIS administrators might need an introduction to data access as it relates to pages that IIS serves. Let's look at how to configure a Data Source Name (DSN) and use it with ActiveX Data Objects (ADO) to access a database from an Active Server Pages (ASP) file.

To execute the tools, tips, code, and tricks that we show you, you need access to SQL Server 2000 or SQL Server 7.0 and to an IIS 5.0 or IIS 4.0 Web server. (We used SQL Server 2000 and IIS 5.0.) Using ADO to Access SQL Server Data Dynamically ADO is a powerful and easy-to-use object model that software developers can use to access data. You can use ADO to access many sources of data, not just SQL Server. Creating a DSN Developers most commonly use ADO with a DSN in ASP files.

Writing a Plugin. Languages: English • العربية • বাংলা • Español • Italiano • a Plugin 日本語 한국어 • Português do Brasil • Русский • ไทย • 中文(简体) • (Add your language) WordPress Plugins allow you to easily modify, customize, and enhance a WordPress site. Instead of changing the core program code of WordPress, you can add functionality with WordPress Plugins. Here is a basic definition. A WordPress Plugin is a program or a set of one or more functions written in the PHP scripting language, that adds a specific set of features or services to the WordPress site.

You can seamlessly integrate a plugin with the site using access points and methods provided by the WordPress Plugin Application Program Interface (API). Wish that WordPress had some new or modified functionality? The first thing to do is to search various WordPress Plugin repositories and sources to see if someone has already created a WordPress Plugin that suits your needs. Resources Names, Files, and Locations Plugin Name Plugin Files Readme File Home Page. Import Excel Data into MySQL in 5 Easy Steps. 9 Tips For Working with MySQL Databases. MySQL is one of the most popular relational database management systems (RDBMS) around, with over 6 million installations. It’s a fantastic choice for any new developer, because of its open source nature, wide support and abundance of tutorials available on the subject. Here are some great tips and tools (beside phpMyAdmin) to improve your MySQL coding, and to help you save time.

Installing SQL If you’re a newbie to the server side coding arena, don’t worry. Mac only PHP, SQL & Apache Installer Windows, Linux & Mac installer A windows only LAMP installer MySQL Server 5.1 If you just want MySQL server, and like using command line then this might suit you. For info on how to install and work with the MySQL server, check this NetTuts tutorial: Everything You Need to Get Started With MySQL. SQL Tips 1- Optimize your code Imagine if you have 100 records, 10 columns.Your working with a database of your clients details, and need to select their name, phone number and address.

SELECT * FROM clients; Differences between index, primary, unique, fulltext? MySQL. PHP 5 MySQL Database Singleton. Today I pushed the source code to a MySQL "singleton pattern" database class into a git repository. This post will explain the history of this code, how it can be used, and how you can help make it better. I have gotten a lot of feedback on a very old PHP database class I wrote for PHP4 back in 2004. Frankly, this class is flawed in several ways and very much out of date. I've been promising folks that I would post an updated, singleton pattern MySQL database wrapper for years. Here it is. This is actually 2 PHP 5 classes: MySqlDatabase is the MySQL database singleton and MySqlResultSet is an iterable object representing a MySQL result set.

I had meant to do more work on these classes, but, I simply have too much on my plate. Get the code from the git repository Features The PHP5 MySQL database classes are designed to simplify the most common tasks associated with interfacing with MySQL. Autoloading spl_autoload_register(); The Singleton Design Pattern $db = MySqlDatabase::getInstance(); How to Change MySQL root password on Windows. Description Use these instructions if you need change the root password for MySQL on Windows or if you need to add additional new users with general or specific limitations.

Setting a root password for MySQL Start your command line by going to the Start Menu > Run and typing cmd (or type command if you are using an older version of windows) Change directory to where you installed mysql to: C:\> cd C:\mysql\bin Switch to mysql command line: C:\mysql\bin> mysql -u root mysql Then set a default password: mysql> SET PASSWORD FOR root@localhost=PASSWORD('newpass'); where "newpass" is the password you want to use Adding more users.

Connecting to and Disconnecting. TUTORIAL: How to install PHP and MySQL on IIS. With the apparent increase of interest in individuals desiring to install PHP and MySQL on computers running Windows operating systems, I thought it would be beneficial to provide a set of instructions to help make this process as easy as possible. In this article, I’ll be providing some basics of IIS installation and then move to the installation of PHP and MySQL.

Some essentials you will need to get started:IIS (preferably IIS 5 or IIS 6)The PHP windows installer file The PHP binaries fileThe MySQL Windows installation file(links will be provided for the downloads shortly). Optional:phpMyAdminMySQL Administrator Let’s get started. Since you are installing on a Windows computer, you will most likely be using IIS for a web server, however, it is not required. You must have some web server running however, and you are quite welcome to use Apache or another web server of your choice, however, since that falls outside the scope of this tutorial we will leave that discussion for another day.