By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

Replacing text with a image.

P: 19
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
Share this Question
Share on Google+
2 Replies


Rabbit
Expert Mod 10K+
P: 12,359
Instead of the text, use the image tags.
Expand|Select|Wrap|Line Numbers
  1. <img src='eastern.jpg' />
Sep 29 '11 #2

P: 19
Duh... That did the trick. Thanks so much.
Sep 30 '11 #3

Post your reply

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