echo $rows help

Posted on 16th Feb 2014 07:03 pm by admin

Hi all,

Hopefully something simple that I don't know!

I have this:

Code: [Select]<div id="marquee">

$query = mysql_query("SELECT stock_id, stock_code, t_val, y_val FROM stocks");
$stock_code = $rows['stock_code'];
$t_val = $rows['t_val'];
$y_val = $rows['y_val'];
$stock_id = $rows['stock_id'];

echo "<marquee>";
echo "<span style='color:#09F'>$stock_code</span>";
echo "&nbsp;";
echo "<span style='color:#0F0'>Todays Price = $t_val</span>";
echo "&nbsp;";
echo "<span style='color:#F00'>Yesterdays Price = $y_val</span>";
echo "</marquee>";

?>Which simply displays the output of a database in a scrolling marquee, which almost works! However the problem I have is that it displays like this:


How can I make it display like this:


Many thanks

No comments posted yet

Your Answer:

Login to answer
129 Like 28 Dislike
Previous forums Next forums
Other forums

Serial number of exernal hard disk/Thumbdrive
Hi guys, I am new tio java networking concepts.Please tel me how to get Serial number of exernal

$GPRMC and NMEA how to extract from report
Hi There,

Im a little bi lost and not sure where to start with this one, ive got a small gps

Oracle11g Patch issue
Hi all,

I'm getting the following error while installing Oracle11g Patch on IBM-AI

What are the two different files you download to update kernel?
What are the two different files you download to update kernel?

Vertical Alligning - Not working in 1 cell?

echo "<table id="valign" width="60%" style=

Hey, I'm wondering how to go about creating and using these types of URLs. I'm presuming it's PHP th

exclude characters from counting?
Hello, I wanted to ask if you have a string like:

Text Not Displaying Correctly With PHP:GD
I recently moved servers and since then I have noticed that one line of text is showing weirdly.

Help with some dates
I have a list of dates in an array:

$mondays = array(
strtotime("October 12, 2009

How do I send data using an html link

If I have
<a href="main_file.php">

How do I send data t

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS

Play Free Quiz and Win Cash