background preloader

Programming

Facebook Twitter

CMU Sphinx - Speech Recognition Toolkit. Sphinx | 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!!! 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.

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. <? // Inialize session session_start(); ? 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. 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.