Jump to content

Smal PHP prob


drisate

Recommended Posts

Nope looks like the output is not properly filtred

 

startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/999925013129.jpg&#039;></center><br><b> Expert Guide to Article Marketing </b><br>One way of promoting your website and product can be achieved for FREE. As an
additional bonus, this “free” method can boost your sites and sales, doubling and even
tripling your income.
Articles. One of the easiest ways to promote your website in order to generate traffic and
increase your earnings.</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/280149095128.gif&#039;></center><br><b>Warrants: Understanding trading and investment warrants</b><br>Warrants – A new investing alternative,

The 1990s saw a dynamic financial market become established in Australia offering concepts that were innovative for private investors. In the past decade characterised by its innovation, the rapidly growing warrants market was at the cutting edge.</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/794306526127.gif&#039;></center><br><b>The Trading Pro’s Secret: Intermarket Analysis</b><br>The Trading Pro’s Secret: Intermarket Analysis helps you understand why intermarket analysis is essential for trading success and shows you why and how it can be a key tool in your trading toolbox:    
     * Factoring in fundamentals
     * Understanding historical market correlations
     * Spotting intermarket relationships
     * Intermarket indicators for intraday or long-term positions
     * Using predictive indicators</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/1190699647126.jpg&#039;></center><br><b>The Intelligent Investor</b><br>Barron&#039;s
    &#039;The wider Mr. Graham’s gospel spreads, the more fairly the market will deal with its public.&#039;

The Intelligent Investor by Benjamin Graham published in 1949, is a widely acclaimed book on investing. Famous investor and billionaire Warren Buffett describes it as &#039;by far the best book on investing ever written&#039;, a sentiment echoed by other Graham disciples such as Irving Kahn and Walter Schloss.</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/893460251ebook.jpg&#039;></center><br><b>Hope</b><br>Understanding Its Power & Purpose</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/946039699124.jpg&#039;></center><br><b>God&#039;s Promises in ( Key Life Areas</b><br>That Will Change Your Life Forever!</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/1153930305123.jpg&#039;></center><br><b>You and God - Getting Personal</b><br>&#039;One of the best guides!&#039; - Discover How You Can Develop a Relationship with God and Know Him More Intimately,</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/624379136121.jpg&#039;></center><br><b>How to Avoid Success at all Costs</b><br>You may be wondering, \&#039;Why would I want to avoid success?\&#039; Most people do this without any effort! And, so begins this new eBook by Pastor Bobby. This is my favorite of his eBooks so far; well, then again, how can you really choose a favorite. So, what is in this book? The focus of this eBook is Christian Business Success! He discusses such topics as:

- Teamwork
- Mentoring
- Potholes to avoid</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/168727523120.gif&#039;></center><br><b>First Look 2007 Microsoft Office System</b><br>Katherine Murray gives you an exclusive introduction to the next generation of Microsoft Office. Youll get an expert overview of new and enhanced applications, features, and capabilities in addition to advance insights and straight talk from the Office product group. Discover the new user interface and revolutionize the way you use Office; learn about the Live Preview feature; introduce yourself to the new collaboration products and services, including Microsoft Office Live Meeting and Microsoft Office Groove. In addition, learn about enhancements to existing Office applications, including new graphics capabilities in Microsoft Office PowerPoint, easier database creation with Microsoft Office Access, easier time-management capabilities in Microsoft Office Outlook, and improved charting capabilities in Microsoft Office Excel.</p>');
startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/35789564119.gif&#039;></center><br><b>E-Mail Rules</b><br>ll companies rely on e-mail as a critical business tool, but few have considered the policies and systems necessary to safeguard their interests. Important information including transaction details, trade secrets, and confidential documents contained within messages are business assets with serious legal and financial implications. If an organization is to be safe, it needs a practical system for handling everything that comes into—and leaves—its computers.</p>');

 

There should by only 1 line for every

startScroll('last','');

 

this is the PHP code i have at the moment

<?php
$last_10 = mysql_query("SELECT * FROM bs_prod order by id desc limit 0,10") or die(mysql_error());
while ($l_prod = @mysql_fetch_array($last_10)) {

$l_prod[name]=str_replace("'", '&#039;', $l_prod[name]);
$l_prod[name]=str_replace('"', '&#039;', $l_prod[name]);
$l_prod[description]=trim(str_replace("'", '&#039;', $l_prod[description]));
$l_prod[description]=trim(str_replace('"', '&#039;', $l_prod[description]));
$l_prod[description]=str_replace("\n", ' ', $l_prod[description]);

echo "startScroll('last','<p><center><img src=&#039;images/ebook/thumbs/$l_prod[img]&#039;></center><br><b>$l_prod[name]</b><br>$l_prod[description]</p>');\n";

}
?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.