how to create marque tag in php code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kedarnath
Forum Newbie
Posts: 1
Joined: Thu Aug 09, 2007 7:38 am

how to create marque tag in php code

Post 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
User avatar
iknownothing
Forum Contributor
Posts: 337
Joined: Sun Dec 17, 2006 11:53 pm
Location: Sunshine Coast, Australia

Post 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>
Post Reply