How To: Insert Data into MySQL Database Using Drop Down Box in PHP

June 14, 2012   php   Author: 
Using PHP and Mysql, we can store data obtained from drop down box into mysql table. The biggest reason for using drop down box is it allows user to only one option only i.e., limited options. A question may arise radio button also gives this functionality of selecting of only one option, but what is special in drop down box?  Reason is more options can be given with low area (space in webpage) and can easily fetch by typing first letter of the option. Read also: How To: Insert Multiple Values Using Dropdown List Box in PHP Create database  "data" and table "tb". [code type=sql]

Submitting Form without Using Submit button in JavaScript

June 2, 2012   Javascript, php   Author: 
Forms in website are used to submit values to the server or to give query or to request some thing. Every form will have  a submit button, which is clicked after finishing filling up of form values. After clicked the submit button only form values are get processed. In some instance there many be situation to submit form values without using buttons. This problem can be achieved by java script. READ ALSO: Submit Form Without Submit Button, When Drop-down List box is Selected Submit Form Without Submit Button, When Radio Button is Clicked document.forms["FormName"].submit();  is

PHP Code to Get IP address of Website Visitor

June 2, 2012   php   Author: 
Knowledge about where the website is visited is important and how many visits are made by a same visitor. This can possible only by tracking IP address of the visitor, every internet user will have an unique IP address by this we can calculate from where our website is being visited. Along with tracking of IP address, recording date and time also important. Because IP address for a user at day1 will be assigned to some other user at day2 or even in day1 itself. Here is the PHP code to track the IP address and storing the IP address with its associated in datebase. Tracking IP address

Difference Between show(), hide() and toggle() function in jQuery

June 2, 2012   jQuery   Author: 
Difference Between show(), hide() and toggle() function in jQuery
In jQuery programming, show() function is to show the html element and hide() function is to hide the html element. toggle() function also do the same operation. Many jQuery newbie programmers gets confused about the difference between show(), hide () and toggle() The difference between show(), hide() and toggle() is toggle() function do the action of both show and hide. show() & hide() Here is the example for show() and hide() function. We can reduce or increase the speed of shoe and hide action by following options hide() $("div.text").hide();   -No argumented hide()

Introduction to jQuery

May 31, 2012   jQuery   Author: 
jQuery is a javscript library function and it is open source. It was released in 2006. jQuery is used to make DOM elements, animations, handle events, HTML manipulation, CSS manipulation and AJAX. Before writing jQuery code into the webpage, we have to call jQuery library file. Library file is stored in javascript file and have to be called in <head> section. [code type=html] <head> <script type="text/javascript" src="jquery.js"></script> </head> [/code] The library file jquery.js can be downloaded from jquery offical site http://jquery.com/ fre

Add Author Box Manually – Without Plugin

May 31, 2012   Wordpress   Author: 
Add Author Box Manually - Without Plugin
Author biography bio can be added through plugin or manually by php code. Adding author box manually with php code is welcomed, becausse using plugin to display author box will increase the website loading time. Read: Add author box with Plugins   Some of the plugins available to show the author biography are Advanced Author Bio WP About Author Custom About Author Author Box Reloaded Go to post_single.php .  Paste this PHP code below <?php the_content(); ?> function [code type=php] <div class="outer"> <div class="image"> <img src="

Warning: Missing required field entry title | Missing required field updated | Missing required hCard author

May 31, 2012   General   Author: 
  Some bloggers/web developers facing problem of warnings in Google rich snippet tool. The following are the warning, which are due to problem in title, date and author of the article. Warning: Missing required field “entry-title”. Warning: Missing required field “updated”. Warning: Missing required hCard “author”.   Warning message is because of the problem in the following code. you can find this coding in post-single.php [code type=php] <?php the_title(); ?> <?php echo get_the_date(); ?> <?php the_author(); ?> [/

Web Server configuration with Authentication to see webpage in Redhat Linux

May 27, 2012   Linux   Author: 
Some webpage or even websites will ask for authentication to open, you may wondered about why they are using password and some ther authentication. The reason is website's admin may want to share private message or that message have to be seen only by authenticated persons. Read:  Web Server Configuration in Redhat For every webpage we have  to set password individually. Here we are going to set password for website station1.example.com . Technically setting password for website means password will be set for the directory, where the website is hosted. #vim /etc/httpd/conf/httpd.con

What is the difference between Apache and WAMP Server

May 26, 2012   php   Author: 
Is it Need to install Apache or WAMP server in computer to use PHP? Yes, because PHP is server side scripting language and it runs only in server. By installing apache server, our client OS ( client OS means windows xp/vista/7) computer will acts as both server and client. Here client means browser and server means web server, request from browser will fetch data from web server using http protocol.   Apache Server Apache is a web server, which is used to serve the web pages. Apache is a open source software, it runs in almost all operating system like Mac OS X, UNIX, LINUX, Win