Probably a really stupid question..

2 replies
How can I define a php link with a css class?

I need to define:

PHP Code:
echo "<a href=\"?page=" . ($i-1) . "$search\">Previous Page</a> "
with my css: class = "t_color1 next" :confused:
#question #stupid
  • Profile picture of the author awebforyou
    echo "<a href=\"?page=" . ($i-1) . "$search\" class=\""t_color1next\">Previous Page</a> ";
    {{ DiscussionBoard.errors[3913656].message }}
  • Profile picture of the author andrejvasso
    @awebforyou: did you check this code snippet? I dont think this will be working....

    @sstoney200: there you go:

    echo "<a href='?page=" . ($i-1) . "$search' class="t_color1next">Previous Page</a> ";


    I cant test it right now, but it should work if i didnt make a mistake.

    p.s. there are no stupid questions - just stupid answers.
    {{ DiscussionBoard.errors[3915969].message }}

Trending Topics