Guest User

Untitled

a guest
Feb 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. $str_accommodation_level = "SELECT * FROM interest";
  2. $query_accommodation_level = $dbcon->query($str_accommodation_level);
  3. while ($accommodation_level = $query_accommodation_level->fetch_array()) {
  4. $level_from = 'type' . $accommodation_level['id'];
  5. if (isset($_COOKIE[$level_from])) {
  6. $level_data += '<span>' . $_COOKIE[$level_from] . '</span> <br>';
  7. }
  8. print $level_data;
  9. }
  10.  
  11. $arr = array('1','2','3','4');
  12. $str=implode(",",$arr);
  13.  
  14. INSERT INTO table_name (column1)
  15. VALUES ('$str')
  16.  
  17. @$filename= $_POST['filename'];
  18. $title = implode(',',@$filename);
  19. $sql .="INSERT INTO createtest_filename(id,filename) VALUES('".$max_id."','".$title."');";
Add Comment
Please, Sign In to add comment