Hello i want to retrieve only one row from an mysqli statement. The catch is that i use the `$row=mysqli_fetch_array` in a `while()` to loop the data. But i need a row to run as variable before the while begins This is what i mean $query=mysqli_query($db,"SELECT a_id,a_title,a_desc,a_url,a_img,a_uid,a_times FROM table WHERE status='1' ORDER BY a_id DESC ")or die(mysqli_error($db)); $x=$query->fetchColumn(6) ?> <marquee behavior="scroll" loop="<?php echo $x;?>" scrollamount="4" direction="left" width="100%" height="50px"> <?php while($row=mysqli_fetch_array($query,MYSQLI_ASSOC)) { echo $row['a_url'].$row['a_title']. $row['a_desc']; }?> i want the $x variable to run the marquee but before the while. any suggestions?

Member Avatar
Member Avatar
+0 forum 9

Hi all, I am working on a small project using Dreamweaver. I have a marquee with many images. Everything works fine in Dreamweaver Live View ( images keep coming out from the right end and disappear into the left end). In IE8 (which supposedly fully support marquee, right?) , once the first image hits the left end, all the images disappear and restart from the rigth end. I also have a button that changes direction of the marquee. In Dreamweaver view, when I hit the "right" direction button, the last image comes out from the left(then the second last, third …

Member Avatar
Member Avatar
+0 forum 3

i have 3 images, 2 are feather's images and 1 is text image i am trying to put these two feather images(which are in png format so to be transparent) in opposite corners as well as in front and 3rd text image should come from behind of the start of feather n scroll to the end of the other feather image(it should come and go behind the feathers, not above) as feathers have little spaces so i want to show that text is going benath the feathers and ends where feather ends i have attached a sample image please help …

Member Avatar
Member Avatar
+0 forum 7

I've got this scrolling marquee code to work on this page: [url]http://www.jamball.com/2011/07/club-teams.html[/url] [B]but it goes crazy in IE[/B]. [COLOR="Red"]I know IE sucks[/COLOR], but over 40% of our customers use it. Is there a way to fix the script, or must I scrap the entire idea? There is a table in the marquee that might be the root cause, but I don't know. Thanks in advance. [CODE]<style> a:hover img#im { width: 410px; border: 0px; } </style> <style type="text/css"> a#link2:link { COLOR: #000000/*The color of the link*/ } a#link2:link { font-size: 13px } a#link2:visited { COLOR: #000000 /*The color of the visited …

Member Avatar
+0 forum 0

Can someone help me i try c++ text with color and it is blinking now i want the text is moving whatever right to left, left to right. I have no idea plsss i begging someone plss help me exmple plss or teach me!!

Member Avatar
Member Avatar
+0 forum 1

hello there! I am new here on Daniweb. I couldn't find an article anywhere on google about moving text in C++. I have an idea but my problem is, I can't find a way to make my other output still. What I mean is: I don't know how to prevent my other output to be cleared when I use clear screen. here is my code: [CODE] clrscr(); int x; gotoxy(x,10); for(x=0; x<=70; x++) { gotoxy(x,10); cout<<"glennkun"; clrscr(); }[/CODE] any idea guys?

Member Avatar
Member Avatar
+0 forum 3

Dear Colls, I have an onmouse over problem. I need to swap JPG with HTML OR to swap JPG with marquee text (moving text in left direction). OR to swap Text with Marquee. I have spend almost half day to do it, without success. Could you help? Thank you in advance,

Member Avatar
Member Avatar
+0 forum 2

I have built a marquee of images that scrolls inside a cell of a table. The marquee width, of course, is dictated by the width of the cell. But I don't want the number of images that actually scroll inside the marquee to cut off based on the width of the marquee. In other words, if 5 images fit across the width of the cell, then the marquee scrolls 5 images. If there are 6 or more images, those images get cut off and the marquee loops back to the beginning of the list of images. Is there a way …

Member Avatar
Member Avatar
+0 forum 7

Hi, I'm trying to make a marquee within a table that uses 1 picture and goes on for infinity, without a gap between where it ends and where it starts each time it loops. Could someone please tell me how to do this? Thanks, -Ashton.

Member Avatar
Member Avatar
+0 forum 6

The End.