😕
Hi there. I am having trouble with the below code. What am I doing wrong? I am getting values back for everything except for $url. The $url array is supposed to take $title and turn it into a file name ... So For Example.... If Title had the Value of Creting a Favicon ... the output of $url should be
creating_a_favicon and then later I will add the rest of the url to it
while($myrow = mysql_fetch_array($result3))
{
$id = $result4['id'];
$title = $result4['title'];
$datemade = $result4['datemade'];
$views = $result4['views'];
$author = $result4['homepage'];
$tutorial = $result4['tutorial'];
$icon = $result4['icon'];
$comments = $result4['comments'];
//HERE IS WHERE I AM HAVING THE PROBLEM
$url = $val["title"];
$url = str_replace(" ","",$url);
$url = str_replace("-","",$url);
$url = strtolower($url);
$url = "_$url";
echo "Image:" . $icon;
echo "Title:" . $title;
echo "Description:" . $comments;
echo "Author:" . $author;
echo "Date:" . $datemade;
echo "Views:" . $views;
echo "Link to Tutorial:" . $url;
}
Please let me know if you know what I am doing wrong.
THANK YOU!!!