I am trying to make the results from mysql results clickable links in php. I am new to php and please help.
while ($info = mysql_fetch_array($data)) {
echo ''.$info['title'].'';
echo "
";
echo $info['descr'];
echo "
";
echo "
";
}
Then in somefile.php
, use $_GET
to capture the id and show the results
$id = $_GET['id'];
// pull info from db based on $id
$sql = mysql_query('SELECT * FROM items WHERE ID = "'.$id.'"');
.
.
.
.