Probably a really stupid question..

Discussion in 'PHP' started by sstoney200, May 19, 2011.

  1. #1
    How can I define a php link with a css class?

    I need to define:

    echo "<a href=\"?page=" . ($i-1) . "$search\">Previous Page</a> ";   
    PHP:
    with my css: class = "t_color1 next" :confused:
     
    sstoney200, May 19, 2011 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #2
    
    echo "<a href=\"?page=" . ($i-1) . "$search\" class=\"t_color1 next\">Previous Page</a> ";
    
    
    PHP:
     
    stephan2307, May 19, 2011 IP
  3. sstoney200

    sstoney200 Greenhorn

    Messages:
    73
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Thanks mate, great help! ;-)
     
    sstoney200, May 19, 2011 IP
  4. ezprint2008

    ezprint2008 Well-Known Member

    Messages:
    611
    Likes Received:
    15
    Best Answers:
    2
    Trophy Points:
    140
    Digital Goods:
    1
    #4
    could you have the CSS on the pge handling that?
    or echo the result in the page with the style before ? <class="blue"> <?php echo $var; ?>
     
    ezprint2008, May 19, 2011 IP