작성일 : 17-06-06 22:24
|
[PHP] 그누보드 php 배열 받기
|
|
|
글쓴이 :
조형래
 조회 : 3,019
|
<?php
$wr_1 = $_REQUEST['wr_1'];
for($x = 0; $x < count($wr_1); $x++){
if($x > 0){
$wr_1_result = $wr_1_result.", ".$wr_1[$x];
}else{
$wr_1_result = $wr_1[$x];
}
}
$sql_image_company = "UPDATE ".$write_table." SET wr_1 = '".$wr_1_result."' WHERE wr_id = ".$wr_id;
// echo $sql_image_company;
// exit;
$update = sql_query($sql_image_company);
?>
|
|