<?php
$usql="select * from users where id='".$userid1."'";
$uqy = $con->prepare($usql);
$uqy->execute();
if ($uqy->rowCount() > 0) {
$urow = $uqy->fetch(PDO::FETCH_ASSOC);
$username=$urow['username'];
$userid=$urow['id'];
$user_name=$urow['name'];
$useremail=$urow['email'];
$useremail=$urow['email'];
$usertype=$urow['usertype'];
$userphone=$urow['phone'];
}
?>