Create links with records and mysql page data from link
Posted: 16 Jun 2017, 14:30
Into this code i see 30 records.
Now i wanna add a link to eatch single record.
i can do this with: >'. $row['notice_id'] .'
but how do i create a singel page with all info from one sigle record?
Now i wanna add a link to eatch single record.
i can do this with: >'. $row['notice_id'] .'
but how do i create a singel page with all info from one sigle record?
Code: Select all
<?php
include('../connection.php');
$sql=mysqli_query($conn,"SELECT * FROM `notice` ORDER BY `notice`.`notice_id` DESC LIMIT 30");
$rehtm='';
// if the $sql contains at least one row
if(mysqli_num_rows($sql) >0){
//get rows data
while($row = mysqli_fetch_assoc($sql)){
$rehtm .='<table class="table table-bordered">
<Tr class="success">
<th>'. $row['notice_id'] .' '. $row['Date'] .'</th>
<th>Title: '. $row['subject'] .'</th>
</Tr><Tr><td><br>
'. $row['Description'] .'</td></Tr><br><br><br> ';
}
}
else {
$rehtm .='0 results';
}
echo $rehtm;
?>