@@ -59,7 +59,7 @@ |
||
| 59 | 59 | <div class="boxx" > |
| 60 | 60 | |
| 61 | 61 | <div class="pic"> |
| 62 | - <img src="<?php echo !empty($row["pic"]) ? $row["pic"] : '../../public/assests/img/ankit.png';?>"> |
|
| 62 | + <img src="<?php echo !empty($row["pic"]) ? $row["pic"] : '../../public/assests/img/ankit.png'; ?>"> |
|
| 63 | 63 | </div> |
| 64 | 64 | |
| 65 | 65 | <div class="brief"> |
@@ -23,12 +23,12 @@ |
||
| 23 | 23 | $edu = get($_POST['education'], $data['education']); |
| 24 | 24 | $gender = get($_POST['gender'], $data['gender']); |
| 25 | 25 | |
| 26 | - if(!empty($_FILES["userpic"]["tmp_name"])){ |
|
| 26 | + if (!empty($_FILES["userpic"]["tmp_name"])) { |
|
| 27 | 27 | |
| 28 | 28 | $path = $_FILES["userpic"]["tmp_name"]; |
| 29 | 29 | $type = pathinfo($path, PATHINFO_EXTENSION); |
| 30 | 30 | $data = file_get_contents($path); |
| 31 | - $base64pic = 'data:image/' . $type . ';base64,' . base64_encode($data); |
|
| 31 | + $base64pic = 'data:image/'.$type.';base64,'.base64_encode($data); |
|
| 32 | 32 | |
| 33 | 33 | $pic = get($base64pic, $data['pic']); |
| 34 | 34 | } |