I have a quick question.
<a href="#/media/<?php echo $row['id'] ?>.<?php echo $row['news_title'] ?>">Read More</a>
Basically, it’ll show my URL once I click on “Read More”. I added the
.<?php echo $row['news_title'] ?>
before the ">
basically, it’ll show ID.THE-TITLE-HERE
However, it’s not working, it does work when i manually add in the “-” in the url for the article after the “.”, but it doesn’t work.
You’ll see what I mean if you go to http://www.krissales.com/#/media/blog
hit “Read More” and it wont show anything, but if you add a “-” between “testing” and “2” it’ll work.
Would anyone know how I could go about fixing this? Just tell me what I can do, I wanna learn at the same time while doing it.
the full .php page is at krissales.com/blog.txt
Thanks for your time.
If
$row['id']is 99 and$row['news_title']is “The title” then the following code will usestr_replaceto output “99.The-title”.