note4

Friday, September 21, 2018

9:48 AM

<?php
$con=mysqli_connect("localhost","root","","sanple")
or die ( nysqli_error($con));

$query= 'SET CHARACTER SET utf8';
mysqli_query($con,$query)
or die('Can\'t charset in DataBase');
?>


<?php
$query=mysqli_query($con, "select * from content");
while($row = mysqli_fetch_assoc($query)){


$id = $row['id'];
$name_en = $row['name_en'];
$name_ar = $row['name_ar'];

?>
<style type="text/css">
<!--
.style3 {font-size: 16px; font-weight: bold; }
-->
</style>


<table width="487" height="40" border="2" cellpadding="2">
  <tr>
    <td width="66"><span class="style3"><?php echo $id;?></span></td>
    <td width="165"><span class="style3"><?php echo $name_en;?></span></td>
    <td width="226"><span class="style3"><?php echo $name_ar;?></span></td>
  </tr>
</table>


<?php
}
mysqli_close($con);
?>



0 comments: