I have the following code but when $newstring echos out as
'.-ucwords(strtolower(-['First.Name']))-.-'-'.-ucwords(strtolower(-['Last.Name']))-.-.php
It should echo out the fields from the database noy just that code.
If someone could help please
$txtname = "'. ucwords(strtolower($row ['First.Name'])) . '-'. ucwords(strtolower($row ['Last.Name'])) . ";
$newstring = str_replace(" ", "-", $txtname);
while($row = mysql_fetch_array($result))
{
echo'
<div class="cat-post-desc">
<h3><a href="' . $newstring . '.php">' . $row['First.Name'] . ' ' . $row['Last.Name'] . '</a></h3>
<p></p>
</div>';