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
how to create marque tag in php code
Moderator: General Moderators
- iknownothing
- Forum Contributor
- Posts: 337
- Joined: Sun Dec 17, 2006 11:53 pm
- Location: Sunshine Coast, Australia
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>