Code: Select all
WHILE ($rows = mysql_fetch_array($query)): //Fetch data from $query as long as there is data to fetch
$rows = preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $rows);
// assign fields from the query to Variables
$first_name = $rows['first_name'];
$last_name = $rows['last_name'];
$company = $rows['company'];
$spec = $rows['spec'];
$discription = $rows['discription'];
// echo "<a href="spec/$spec.pdf">$spec $discription</a>
// <br />";
// Trying to link each line to spec.pdf were the spec is the corresponding spec number.
echo "<a href='spec/$spec.pdf'>$spec $discription</a><br />"
How can I get a link to use a variable in the link name as well description of the link and make a new line after each new link?