• Home
  • Posts RSS
  • Comments RSS
  • Edit
Blue Orange Green Pink Purple

Development Space - Tips and Tricks

WEB....DEVELOP.....DESIGN.....TIPS....TRICKS....PHP....JQUERY.....JAVASCRIPT

Upload and Rename File

Overview
In this tutorial create 2 files
1. upload_rename.php
2. upload_rename_ac.php


Steps
1. Create file upload_rename.php.
2. Create file upload_rename_ac.php.
3. Create folder "upload" for store uploaded files.
4. CHMOD your upload folder to "777" by using your ftp software(change permission).


Create file upload_rename.php
View in browser 

############### Code

Read more »
於 Wednesday, May 18, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: PHP

Verifying email address

Overview
In this tutorial create 4 files 2 databases
1. signup.php
2. signup_ac.php
3. confirmation.php
4. config.php

We have to create 2 databases
1. temp_members_db
2. registered_members

What to do1. When users sign up. Random a set of confirmation code.

2. Keep their informations and confirmation code in table "temp_members_db". This is temporary table, we have to move this informations to table "registered_members" after email address has been verified.

3. After sucessfully inserted data into table "temp_membes_db", send confirmation link to email that users used to sign up, if email is invalid they will not receive our email.

4. They have to click on confirmation link to activate their account. (move data from table "temp_member_db" to table "registered_members" and delete data from table "temp_members_db" in this step)


Create table "temp_members_db" and table "registered_members"

Read more »
於 Wednesday, May 18, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: PHP

Encrypting Password using md5() function

Syntax
$password="123456";

md5($password);

Use md5(); to encrypts password to make it more secure

 Overview
Look at these two databases, it's the same person and same info, the first one we don't encrypt his password but the second one we encrypted his password

Read more »
於 Wednesday, May 18, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

PHP Login script tutorial

Create table "members"
CREATE TABLE `members` (
`id` int(4) NOT NULL auto_increment,
`username` varchar(65) NOT NULL default '',
`password` varchar(65) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;
--
-- Dumping data for table `members`
--
INSERT INTO `members` VALUES (1, 'john', '1234');


Create file main_login.php
View In Browser 

############### Code
<table width="300" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr>
<form name="form1" method="post" action="checklogin.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td colspan="3"><strong>Member Login </strong></td>
</tr>
Read more »
於 Wednesday, May 18, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: MYSQL, PHP

Creating database, table and managing MySQL database using phpMyAdmin

Overview
phpMyAdmin is a tool written in PHP intended to handle the administration of MySQL over the Web. Currently it can create and drop databases, create/drop/alter tables, delete/edit/add fields, execute any SQL statement, manage keys on fields, manage privileges,export data into various formats
Dowload Here 

Installation
- Put phpMyAdmin folder where you keep php file

phpMyAdmin

phpMyAdmin home


Create database using phpMyAdmin
Create new database form 

mysql create database
1. To create new database use this form, type database name then click "Create" button. In this example I create database name "test_create_DB".

Read more »
於 Wednesday, May 18, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: MYSQL

Skitter – A jQuery Slideshow Plugin With Flexible Animations

Skitter is a jQuery plugin that enables us to convert unordered lists into slideshows with attractive animations.
The slideshow can display the list of slides as numbers or thumbnails and items can be browsed with the help of prev-next buttons as well.
It has many original animation types including cube (with various sub-types), tube, block and more.
















There are several options offered for maximum customization like: velocity (for the animation particles), interval between each slide or label display on/off.
Another nice feature is the ability to mention the animation type for each slide as a class name which allows us to use multiple animation types inside one slideshow.
Requirements: jQuery
Compatibility: All Major Browsers
於 Tuesday, May 17, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: JQuery

Agile Carousel: A Highly-Flexible jQuery Slideshow Plugin

Agile Carousel is a jQuery plugin that allows us to create flexible (both in function and design) slideshows.
The plugin uses JSON for the data format of the slides. So, they can easily be provided remotely and integration with any other system (like CMSs) will be easier.
You can select between "fade" or "slide" as the transition effect, duration of the transitions and intervals between each slide can all be defined.















Slides can be set to be displayed with an "infinite scrolling" interface, navigation can be accomplished by "numbered buttons", "prev-next buttons" or any custom control.
With a simple function, it is also possible to get the total number of slides and the "current" slide displayed which would be handy when customizing it.
P.S. The plugin was previously shared at WRD, however, this is a totally re-written version and the old URLs are no longer available.
Requirements: jQuery
Compatibility: All Modern Browsers
 
於 Tuesday, May 17, 2011 0 意見
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
標籤: JQuery
Older Posts Home
Subscribe to: Posts (Atom)

Development Space

  • About
      A Cool General Website Development Tips and Tricks. Check out out cool web development tips and tricks. Our tips range from design and programming
  • Category

    • JQuery (15)
    • MYSQL (2)
    • PHP (3)

    Blog Archive

    • ▼  2011 (22)
      • May (22)
    • ►  2008 (1)
      • April (1)

    Total Pageviews

  • Search






    • Home
    • Posts RSS
    • Comments RSS
    • Edit

    © Copyright Dev Space Tips. All rights reserved.

    Back to Top