background preloader

Programming

Facebook Twitter

CMU Sphinx - Speech Recognition Toolkit. Open Source Search Server. Sphider - a php spider and search engine. Super Grabber. How to Create Login Page in PHP and MySQL with Session « Frozenade’s Zone. ##########################NEW UPDATE!!!

How to Create Login Page in PHP and MySQL with Session « Frozenade’s Zone

PHPMySimpleLogin 0.3 Download full source code: ########################## The production of login page using PHP and MySQL is actually very simple. I assume that you use local web server connection (Apache and PHP) and your MySQL database configuration use ‘localhost’ as hostname and ‘root’ as username with blank password. For this case, I recommend you to using XAMPP ( Please download and install it to your path choice. e.g: C:\xampp Run XAMPP Control Panel on desktop. Start Apache and PHP modules. Let’s create a database with PHPMyAdmin. Create database ‘phpmysimplelogin’. Click ‘Create’. Now, let’s create a table, name it ‘user’ with ‘2’ (two) number of fields.

Click ‘Go’. First field, name it ‘username’, type ‘varchar’, lenght/values ’25’. Click ‘Save’. After that, we will fill the table. It means, you fill ‘username’ field with string ‘admin’ and ‘username’ field with an encryption string of ‘admin’. Okay, now let’s prepare the web pages. <? CSS tutorial: Create a dynamic horizontal navigation bar. These days it's almost a standard to use an unordered list element for your page navigation.

CSS tutorial: Create a dynamic horizontal navigation bar

While a vertical list in some sidebar is some easy peace of work, is the horizontal navigation a little bit more complicated. Preview and example navigation We need to float the list elements to get them in the horizontal order. There are many great examples on this CSS resource site and also our example here is based on one of the tutorials listed on the suggested site. Notice the active state in the preview above, this can’t be done without any scripting language. Generating the html snippet The next snippet has for the first list item the attribute id "current".

First we create an array for the links and link labels we want to use in our navigation. While the navigation is very simple (just using one level) we need only some style sheet for the unordered list elements. Don't forget that we are working with a block type element and all those elements are having a 100% width by default. PHP 101: PHP For the Absolute Beginner. Beginning Game Development: Part I – Introduction. Part I – Introduction Welcome to the first article of an introductory series on game programming using the Microsoft .NET Framework and managed DirectX 9.0.

Beginning Game Development: Part I – Introduction

This series as aimed at beginning programmers who are interested in developing a game for their own use with the .NET Framework and DirectX. The goal of this series is to have fun creating a game and learn game development and DirectX along the way. Game programming and DirectX have their own terms and definitions that can be difficult to understand, but after awhile, you’ll crack the code and be able to explore a new world of possibilities.

I will keep things as straightforward as possible and decode terms as they appear. In this series, we are going to build a simple game to illustrate the various components of a commercial game. Tools: Before we start writing our first game we need to talk about the tools we will use. The most important tool for any developer is the Integrated Development Environment (IDE). Our Game idea: