connect_error) { die("Connection failed: " . $conn->connect_error); } $get_data="select FUNIVCODE,FUNIVNAME,FUNIVADD1,pdf_logo_path from control"; $result=$conn->query($get_data); if (mysqli_num_rows($result) > 0) { // output data of each row while($row = mysqli_fetch_assoc($result)) { $FUNIVCODE=$row['FUNIVCODE']; $FUNIVNAME=$row['FUNIVNAME']; $FUNIVADD1=$row['FUNIVADD1']; $pdf_logo_path=$row['pdf_logo_path']; } } ?>