Posted by Ryan Lange on 02/25/06 05:22
wicky wrote:
> hello, i tried to apply php tags to show some smilies but it wouldnt
> work because my html tag have css class to control it. No pictures
> show up but when i delete the css class the pictures show up, anyone
> know the reason to this? thank you
> <p class="emoticon">
>
> <?php
> foreach($image as $count => $image_path)
> {
> $buf = sprintf("%s",$image_path);
> $c = $c+1;
> ?>
>
> <img src="<?php echo $buf;?>">
> <?php
> if($c==5)
> {?>
> </p>
> <p class="emoticon">
> <?php
> $c = 0;
> }
> }
> ?>
> </p>
> http://eye.cc php newsgroups
This is HTML/CSS issue rather than a PHP one, but... Why do you
have two '<p class="emoticon"></p>' blocks, when the second one will
always be empty?
- Ryan
[Back to original message]
|