Jump to content

[SOLVED] image


unidox

Recommended Posts

My code:

 

if ($mysql[rosterpic] !== "0"){
        ?>
              <td style="border: 1px solid rgb(42,49,52)"><a href="index.php?id=csroster&roster_id=<?=$mysql[roster_id]?>"><img src="<?=$imagefilepath . 'rosterpic' . $mysql[roster_id] . '.' . $mysql['imagetype']?>" width="45" height="45" border="0" onmouseover="swapOnRoster('<?=$mysql[first]?>','<?=$mysql[last]?>','<?=$mysql[alias]?>')" onmouseout="swapOffRoster()"></img></a></td>
              <?
              } else {
              ?>
              <td style="border: 1px solid rgb(42,49,52)"><a href="index.php?id=csroster&roster_id=<?=$mysql[roster_id]?>"><img src="pics/roster.gif" width="45" height="45" border="0" onmouseover="swapOnRoster('<?=$mysql[first]?>','<?=$mysql[last]?>','<?=$mysql[alias]?>')" onmouseout="swapOffRoster()"></img></a></td>
              <?
              }

 

Works for the if part fine, but when I add someone to the roster without an image, it appears for like a second, then goes away. Whats wrong?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/70204-solved-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.