I get some values from a database query (mysql). These values become saved into an array. With foreach I can display each row from the mysql table which complies the term. Now my question is how can I display specific value pairs on another page when the user click the list item?
e.g.
<a href="#" class="list-group-item ">
<h4 class="list-group-item-heading">Noob</h4>
<p class="list-group-item-text">Hi I am new at stackoverflow...</p>
</a>
In this case on another page should be displayed "Noob" and "Hi I am...". This should work for every list item. I search the web for any days but doesnt found something helpful.
<?php include( "list.php"); ?>
<div class="list-group">
<?php foreach ($result as $key=>$row): ?> <a href="#" class="list-group-item ">
<h4 class="list-group-item-heading"><?php echo $row['title']; ?></h4>
<p class="list-group-item-text">
<?php echo $row['description']; ?>
</p>
</a>
<?php endforeach; ?>
</div>