Код: Выделить всё
if(isset($user_id)) {
$user_id = $_SESSION['user_id'];
$sql1 = "SELECT profilepicture , id FROM user WHERE id = '$user_id' ";
$select= mysqli_query($conn, $sql1); // just for the owner of the account.
if(isset($user_id)){
if(mysqli_num_rows($select)>0){
$row = mysqli_fetch_assoc($select);
echo "
[img]images/[/img]
" ;
Подробнее здесь: https://stackoverflow.com/questions/794 ... ebsite-con
Мобильная версия