- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
if (check($user))
{
$names='(';
$values="values(";
foreach ($user as $key => $value )
{
$names=$names.$key.',';
$values=$values."'".$value."',";
}
$names[strlen($names)-1]=')';
$values[strlen($values)-1]=')';
}
$sql="insert into users ".$names.' '.$values;