Page 1 of 1

how to create marque tag in php code

Posted: Thu Aug 09, 2007 7:44 am
by kedarnath
hai guys i am new to php. i want to create marque tag example in php coding.

i tried like this

<?php

echo "<FONT SIZE=\"4\" FACE=\"courier\" COLOR=\"blue\">
<MARQUEE BEHAVIOR=SCROLL HEIGHT=\"25\" WIDTH=\"300\" BGColor=yellow>
This is an example of a scrolling marquee</MARQUEE></FONT>";

?>

but in marque message i need to pass the data from database ,how it is ?

please guide me on this issue.

bye
Kedar

Posted: Thu Aug 09, 2007 7:53 am
by iknownothing

Code: Select all

$result = mysql_query("SELECT message FROM a_table");

while($row = mysql_fetch_array($result))
  {
  $message = $row['message'];
  }

Code: Select all

<FONT SIZE="4" FACE="courier" COLOR="blue"><MARQUEE BEHAVIOR=SCROLL HEIGHT="25" WIDTH="300" BGColor=yellow><?php echo $message; ?></MARQUEE></FONT>