Hi,
I thought this would be the world's easiest php script, but right now it is kicking my butt. Hoping someone might be able to help solve this strange problem.
Basically, I'm pulling info from a database to display select info to put inside a <ul><li></li></ul>.
Inside each URL, there is the "Title"...which has a URL link and is bolded. Then there's suppose to be a space, an : or - , another space, and then the "Description", which is normal text.
All works fine, except that the "Description" is starting on a new line below the "Title". I want to have the individaul <li> display this all on one line (and automatically text-wrap if need be).
Here's the code I'm using.
<!-- Begin Menu -->
<nav class="widget">
<h4>Introductory Title</h4>
<ul class="categories" id="menu-lists">
<?php
$query = 'SELECT * FROM `TABLE_NAME`
WHERE category = "CATEGORY_NAME"
ORDER BY RAND() Limit 5';
$results = mysql_query($query)
or die(mysql_error());
?>
<?php
while ($row = mysql_fetch_array($results)){
extract($row);
echo "<li><a href=$Link class='class_name_to_bold'>$Title</a> - $Short_Description</li>";
}
?>
<li><a href="url_goes_here.php" class="class_for_bold_text">View All Articles Etc...</a></li>
</ul>
<span class="class_name"><hr /></span>
</nav>
So what's am I - a total novice PHP coder - doing wrong here? I really thought this would be such an oh so simple script!