Ticker for new dynamics

Hello

I want to display news dynamically from my database. I don't know how exactly. Please help me.

Here's my complete code: http://pastebin.com/VVVPsZXV 

Here is my code at the top of my page:


<? PHP

include_once("admin/Connection.php");

$sql = "" SELECT * FROM flashnews '; "

$query = mysql_query ($sql, $conn);

for ($i = 0; $i < mysql_num_rows ($query); $i ++)

{

While ($result = mysql_fetch_array ($Query))

{

$scrollnews = $result [$i] ['news'];

}

}

? >

Then I got the news in the news ticker as news

< ul id = "js-news" class = "js-hidden" >

< class li = 'news item' > <? php if (isset ($scrollnews)) {echo $scrollnews ;}? > < /li >}

<!-< class li = 'news item' > jQuery News Ticker now has support for right to left languages! < /li >

< class li = 'news item' > jQuery News Ticker now has support for loading content via an RSS feed! < /li >

< class li = 'news item' > jQuery News Ticker now has a fade in option between elements effect! < /li >

< class li = 'news item' > new updates have been made to jQuery News Ticker! Check below for more details! < /li >

< class li = 'news item' > jQuery News Ticker is now compatible with jQuery 1.3.2. See below for more details and to download. < /li >

< class li = 'news item' > jQuery Ticker of new additional updates are coming soon! --> < /li >

< /ul >

I get the new final. But I want the info to display one by one.

Please help me.

Thanks in advance

I'm not familiar with the jQuery News Ticker, but the reason why you get only the last item of news is because of the way that your PHP, while the loop works. Whenever it is running, it replaces the value of $scrollnews with the current row of the result of database.

I think you need to do is to use the result of the database to populate the unordered list.

<>

$sql = "" SELECT * FROM flashnews '; "

$query = mysql_query ($sql, $conn);

?>

    echo '

  • ' . $result ['news']. '
  • ';

    }

    ?>

Furthermore, you should not use the old features of mysql. They are obsolete and will not be supported in a future release of PHP. You must use MySQL improved instead.

Tags: Dreamweaver

Similar Questions

  • Why my original Apple Watch do not update 3.0? My information shows my software is up to date with 2.2 and 3.0 is now available. Is this only for new watches?

    My Apple Watch shows that I'm up-to-date 2.2.2. Today 3.0 is available. Is this only for new watches?

    No - watch OS 3 is available for all models of Apple Watch.

    Be patient in waiting for the watch OS update 3 to become available, but start by updating your iPhone on iOS 10:

    Update the software on your iPhone, iPad or iPod touch - Apple Support iOS

  • If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    If I have the first generation iWatch I'll be able to get the update for new applications and look at faces?  I know that I couldn't display or the waterproof function to the water.

    Hello

    The next operating system update, watch OS 3, will be available for all Apple Watch models, including the first generation watches.

    We should go out on 13 September, after which it can be installed by following the steps detailed here:

    More information:

    http://www.Apple.com/Watchos/

  • No sound for new messages

    I'm not all sounds for new mail. The sound is played with other applications?
    Thunderbird 38.2.0
    Linux Mint cinnamon 17.2

    I solved the problem by installing the version on the net.

  • I want to change the account for new messages

    I have 12 mailaccounts. I want to change the standard account. It seems to me that the first account in the list is the standard account for new mail, I want the second in the list.

    Tools / account settings
    Button down "Actions account."
    as a default value

  • I want the cursor to be in the address bar when you create a new window; It works for new tabs and a new private window, but not in safe mode.

    I tried following the advice offered in the different threads bit I found on this but nothing works out. I want the cursor to be in the address bar when I open a new window or when firefox opens without restoring a previous session. I solved the problem for new tabs via subject: config, but it does not work for the new windows. I tried safe mode and the problem persists. In a new private window, the cursor is in the address bar.

    A new window opens the homepage (default: subject: House) and not the new tab page (default: subject: newtab).

    Some of the built-in pages set the focus to the search bar on the web page, just like the Google site only.

    You can use a bookmark in the bookmarks toolbar that opens the subject: blank page.
    If you hold down the SHIFT key when you click this bookmark, then you open a new widow with this page.
    Otherwise, you need to set the home page to about: blank or on the point: about to have easy access to all the pages.

  • How can I configure my Mozilla Thunderbird to me for new confirmed before leaving?

    I used to use Microsoft outlook. In outlook, we use the button 'close' at the top right of a mail to close this letter.
    In thunderbird, this 'x' is available on the top somewhere in the middle.

    To close a mail, I click on the upper right corner by mistake and the release of Thunderbird (which I didn't) by mistake.

    How can I configure my Mozilla Thunderbird to me for new confirmed before leaving?

    As far as I can see there is no easy way to do this. However, an easy option is to have the Thunderbird in the system tray on hitting the close instead of closing button. The add-on "Minimize on start and close" for Thunderbird accomplishes this mission and to close all what you need to do is right-click on the icon in the taskbar, and then click close to close actually it. I hope this helps.

  • Cannot automatically download new messages and auto answer with out-of-Office message must manually check for new messages, so he can do

    I use Mozilla Thunderbird 31.3.0. I know how to create a message filter, to implement a response message automatic, but impossible to get Mozilla to automatically download new message and auto reply with the message in the filter, unless I have manually check for new messages, this is the only way to make it work. I looked online and can't seem to find an answer to that particular question. According to everything I found, I have the right boxes checked in the server settings: automatically check for new messages at startup, check new messages, check for new messages every x amount of minutes. It's one thing to have leave my computer and open Thunderbird for this works, but having to manually check for new messages get the AutoReply to work defeats the whole purpose of having an automatic response, because I use them for vacations, holidays, etc. I wondered if there are security settings that cause this problem, but if so, I don't know what changes to do to them. Thanks in advance for any help. It drives me crazy.

    I find it a little odd that Thunderbird does not mail on the calendar, you may have an add-on or antivirus program that prevents this.

    Now shift while you start Thunderbird will begin with disabled modules to check if the messages are automatically.

    By air is to the right, use the autoresponder Verizons. This link might help with this http://www.verizon.com/support/residential/internet/highspeed/account+tools/email+tools/questionsone/85621.htm#
    You say that not having is not such a context in Thunderbird is something that needs fixing. This idea comes across because Outlook has such an option. what most people don't know of it only works with Exchange server. There is no "vacation response" in the specifications of the mail server so every server implements differently.

    As all cars have a radiator, you can't take any radiator, and simply put, they are subtly different even if they perform the same purpose. Goes same for stakeholders of vacation, they perform the same function, but they differ between brands of e-mail server software.

    Thunderbird leaves the server end to expose the feature, because they are really the only ones who understand what they were doing. Outlook exposes the option and especially greys out.

  • The search for 'new' emails are NO emails unread.

    Organization of the emails through filters to specific subfolders to be completed successfully. However, if the records are NOT developed, you cannot see the 'new' emails unread. Thus, in order to 'find' where they are quickly, I try a search for 'new' emails. There is NO search condition for 'unread', so I'm looking for "new". Thunderbird apparently does not recognize emails unread as new.

    How to make this work properly? Where can I get 'no read' versus 'new '?

    Best regards

    Ken

    Try this:
    View > folders > unread
    or
    Icon of the menu > folders > unread

    Return to view all folders.
    View > folders > all the
    or
    Icon of the menu > folders > all the

  • TB download every mail, whenever it checks for new mail, even if it has been downloaded before.

    I now have about 14 copies of each mail, seems like it does not recognize that it has already downloaded.

    Hi, well, POP3 is not designed to keep the emails in the Inbox on the server permanently. Because when checking for new messages, to my knowledge he needs to go through all the mails in the Inbox on the server to check if it is already downloaded or not.

    To this end, there is a cache on the client side. The size of this cache can be configured in the following manner through prefs.js:

    user_pref ("mail.server.server1.numHdrsToKeep", 10000);

    I don't know the default value, but you can set it for example 10000 (cache to 10000 mails). You must check in your server folder to which it is (server1, Server2, etc) according to the other entries in the config file.

    However, you should not keep mails to "Infinity", I do not know the maximum value possible for this and I guess that we slow down the download of new messages with the increase in number of mails.

    I have to admit, I also use the above setting to increase the memory cache my caches POP3 to have emails available on my PC, as well as on my smartphone email client. However, what I did to not blow: in my mail provider (GMX) web-based configuration, I specify that emails are automatically deleted from my Inbox on the server after 3 months. This constantly maintains the number of mails away from 10000...

  • How to eliminate pop ups for new e-mail e-mail

    How can I eliminate pop ups for new email

    Sorry, but I don't understand. What 'pop ups for new emails? Are you referring to Notificatioms?

  • The sign '+' at the end of navigation tabs no longer appears, so I can't open new tabs - all tested (reloaded the add-on for new tabs - no joy.

    New user (new computer - no problem for 9 days) Re: tabbed browsing, the sign plus allows you to open a new tab has suddenly disappeared. Searched through all the notes help and have reloaded x 3 an add - we (extension?) for new tabs. In other words, I don't know where to look to get this feature.

    Hi waukss:

    Go to the view of . Toolbars | Customize and click the 'Restore Default Set' button or drag the 'New tab' icon in the window customize (if available) beside your existing tabs. It is also possible by mistake, you drag the icon "+" to another bar tools and just need to drag back where it belongs. If none of this works, go to tools | Options | Tabs and make sure that 'always show the tab bar' is enabled.

    If you're really stuck, a double click of your mouse just to the right of your last visible tab [or file |] New tab (Ctrl + T)] should also open a new tab.

    Windows Vista Home Premium 32-bit * Firefox 6.0

  • How can I have two buttons for 'new tab' in version 4?

    In version 3.x, there is a removable button on the toolbar for 'new tab' plus a button '+' at the end of the address of the open tab I could click to create a new tab.
    In version 4, I can have the removable button, but I do not see how to add the button at the end of the address of the open tab. I can move the single button at the end of the address window, but I can't have two buttons.
    Is it still possible?

    You must drag the button new tab (+) of the tabs to another toolbar toolbar to make the second button to appear.

    "Firefox > Options > toolbars" or "view > toolbars > customize.

  • Why send is download 250 messages every time I check for new messages?

    Since the upgrade to iOS 9 on my iPad and iPhone I'm drowning in old email!  My POP with Bell (sympatico) account has eight years of my emails on their server. When I check for new mail, my devices download 250 messages each time.  I tried various options in parameters (pressure, extraction etc.) does not. Bell's response is to delete all messages.  There is no option in 'manage my storage' and the mail app uses 1 GB! This is not the case on my computer, so I think the problem might be with iOS 9. Mail is now trying to synchronize with the server?

    Have you tried to remove your email account, and adding back?

  • Satellite P105-6064: Windows always searches for new hardware, reader of CARDS SD

    When I insert my SD CARD windows search for new hardware, it happened only with the SD CARD, when I use my CARD MMC is not the problem, I have the latest drivers on the site of toshiba and windows XP - SP2

    Hello

    It seems that the Satellite P105-S6064 PSPA0U supports a 5 - in1 bridge media adapter.
    This bridge media adapter supports the shared locations. This means that several types of cards can be used in this slot as a Secure Digital (SD card) card, memory stick, memory stick pro, Multi media (MMC) card and card xD picture card.

    Seems that after the use of different cards, the pilot must be refreshed and so windows search new device.

    In my opinion, there is nothing wrong, but it would be interesting to know if the same thing happens on OS installed since the Toshiba Recovery CD.

    By the way; The Sat 105 seems to be a mobile US and if you need drivers you must search on the Toshiba site we drivers compatible and taken in charge!

    Best regards

Maybe you are looking for