[insert_php] $servername=’localhost’;
$username=’iceeduph10′;
$password=’iceeduph123!@#’;
$dbname = “admin_ice”;
$conn=mysqli_connect($servername,$username,$password,”$dbname”);
if(!$conn){
die(‘Could not Connect My Sql:’ .mysql_error());
}

[/insert_php]





[insert_php] $sql = “select *,UPPER(concat(lastname)) as myname from tbl_info where grade = ‘BSIT-IV’ order by lastname ASC”;
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_assoc($result)){

$img = $row[‘image’];
if(empty($img))
{
echo’

‘;
}
else
{
echo’

‘;
}

}
[/insert_php]