473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Replacing text with a image.

I have a image i want to display instead of text i have showing. Some what a newbie so be gentle.

Expand|Select|Wrap|Line Numbers
  1. <?php
  2.  
  3.  
  4. function ConferenceStandings ($conference)
  5. {
  6.  
  7.   include 'connect.php';
  8.  
  9.   $teamid = $_REQUEST["id"];
  10.  
  11.   // Connects to your Database
  12.  
  13.   $sql = "select *from season11 join teams WHERE season11 . team =teams . teamnameseason AND teams . conference ='$conference' ORDER BY `season11` . `P` DESC";
  14.   $data = mysql_query($sql) or die(mysql_error());
  15.   Print "<table width = 300>";
  16.   Print "<th bgcolor=#C10000>&nbsp;&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</th>";
  17.   Print "<th bgcolor=#C10000>&nbsp;&nbsp;&nbsp;&nbsp;Team&nbsp;&nbsp;&nbsp;&nbsp;</th>";
  18.   Print "<th bgcolor=#C10000>&nbsp;&nbsp;&nbsp;&nbsp;GP&nbsp;&nbsp;&nbsp;&nbsp;</th>";
  19.   Print "<th bgcolor=#C10000>&nbsp;&nbsp;&nbsp;&nbsp;Pts&nbsp;&nbsp;&nbsp;&nbsp;</th>";
  20.  
  21.   $count++;
  22.   while($info = mysql_fetch_array( $data ))
  23.   {
  24.     $wcount=$wcount+1;
  25.     $teamnameseason = $info['teamnameseason'];
  26.     Print "<tr>";
  27.     if ($wcount == 9)
  28.     {
  29.       Print "<td>"?>
  30. <hr align="center" width="100%" size="1" color="#C10000" />
  31. <?php "</td> ";
  32.       Print "<td>"?>
  33. <hr align="center" width="100%" size="1" color="#C10000" />
  34. <?php "</td> ";
  35.       Print "<td>"?>
  36. <hr align="center" width="100%" size="1" color="#C10000" />
  37. <?php "</td> ";
  38.       Print "<td>"?>
  39. <hr align="center" width="100%" size="1" color="#C10000" />
  40. <?php "</td> ";
  41.       Print "<tr>";
  42.     }
  43.  
  44.     Print "<td align = center>".$wcount. "</td> ";
  45.     Print "<td align = center>".$info['teamnameseason'] . "</td> ";
  46.     Print "<td align = center>".$info['GP'] . "</td> ";
  47.     Print "<td align = center>".$info['P'] . "</td> ";
  48.   }
  49.  
  50.   Print "</table>";
  51.   include 'closedb.php';
  52. }
  53.  
  54. print "EASTERN CONFERENCE";
  55. print "<br />";
  56. ConferenceStandings ("East");
  57.  
  58. print "<br><br><br>";
  59.  
  60. print "WESTERN CONFERENCE";
  61. ConferenceStandings ("West");
  62. ?>
  63.  

Now, just above i have EASTERN CONFERENCE and WESTERN CONFERENCE that prints and i want to replace that text with a image. Anyone help a poor man out? :)
Sep 29 '11 #1
2 1547
Rabbit
12,516 Expert Mod 8TB
Instead of the text, use the image tags.
Expand|Select|Wrap|Line Numbers
  1. <img src='eastern.jpg' />
Sep 29 '11 #2
Duh... That did the trick. Thanks so much.
Sep 30 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jerry Werner | last post by:
I need to replace my email address on hundreds of web pages with a new address (in a graphic, not a mailto) in order to thwart the email harvesters that spammers are using. Ideally, I'd like to do...
6
by: Peter Foti | last post by:
I have seen lots of examples where some HTML text is replaced with a background image using CSS. For example, replacing the text of an <h1> with a graphical logo, like so: CSS: h1 span {...
1
by: Andrew Poulos | last post by:
Say I have a page, which has been created by a third party, and the page may contain some pre-specified text. How can I find and replace that text dynamically? For example, if the page I have...
2
by: Win, Pats | last post by:
Just wondering if anyone has ever seen a 3rd party component that facilitates the creation of text images. I know I can "roll my own" but was not wanting to reinvent the wheel. I searched...
12
by: Adam J. Schaff | last post by:
I am writing a quick program to edit a binary file that contains file paths (amongst other things). If I look at the files in notepad, they look like: ...
3
by: TobyD | last post by:
I am a beginner programmer in VB and need help. If I have a string with a return, how do I exchange the return with a return and tab? Currently I am entering a string with EnterKeyBehavior...
3
by: baxy77bax | last post by:
hi, i have a question about replacing text after a defined string. for example : the text goes. ##|######|#######_##| ########... ##|######|#######_##|########... ...
4
by: reetamca | last post by:
Hi all, i have a image pic1 in my page and i need to replace pic1 by another image pic2 in the same position after clicking the button. what is the code to do it in html and javascript. Is...
4
by: wildman | last post by:
RE: Replacing Text without changing case?? This code works great, but case has to be exact. Research.Text = Research.Text.Replace(textboxSearch.Text, "<b>" + textboxSearch.Text + "</b>") ...
1
by: =?ISO-8859-1?Q?S=F8ren?= | last post by:
Hi guys I got the following code: ------------------------------------------------------- Dim Word As New Microsoft.Office.Interop.Word.Application Dim Document As...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.