hi guys im still relatively new web design, , frustrated being able pass information php, whilst in php - forces me use echo statement. in turn gets bit messy below:
echo '<div class="jokes"> <p>' . $joke1[$x] . '</p><p class="meta"> uploader ' . $uploader[$x] . ' date: ' . $joke_date[$x] .' <p/> </div>' ;
what have word uploader in meta tag in 1 color, , php passed variable $uploader[$x] in color. adding more style tags getting bit confused keeping track of points , quotes. suggestions?
many
this should give start:
<style> .blue { color: blue;} .red { color: red;} </style> <?php echo '<div class="jokes"> <p>' . $joke1[$x] . '</p><p class="meta"> <span class="blue">uploader</span> <span class="red">' . $uploader[$x] . '</span> date: ' . $joke_date[$x] .' <p/> </div>' ; ?>
Comments
Post a Comment