Bangla Radio

Share

Bookmark and Share

Monday, May 3, 2010

Checkbox mutiple value Transfer in Database using PHP Code

At first Create Database then you create table something like that:

create table users(
id int(10) not null auto_increment,
checkbox varchar(60) not null,
primary key(id)
) engine=myisam;

Then using PHP coding:


$food = $_POST["food"];


$data="";
/*
foreach($food as $values)
{
$data.=$values.",";
}
*/
//new way .....

$data=implode(",", $food);

$query="insert into users values('','$data')";
$result=mysql_query($query);

Create form:


Please choose type of residence:
Steak
Pizza
Chicken

0 comments:

Post a Comment

Submit your Web Site to Search Engine

Google PR Check

Check Page Rank of your Web site pages instantly:

This page rank checking tool is powered by Page Rank Checker service

Keyword Based Search Engine Checker

Your domain:
(eg. iwebtool.com)
 
Search on:  
Limit search to:
Keywords to search:
 
 

Powered by iWEBTOOL

Backlink Checker Tools

Your domain:
  (eg. iwebtool.com)
 

Powered by iWEBTOOL

Search Engine Spider Simulator

Enter URL to Spider

Google Penalty Checker

Google Penalty Checker



Powered by Li'l Engine's Google Penalty Checker