Results 1 to 4 of 4

Thread: making this a link

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default making this a link

    I'm trying to make this line a link can anyone help I tried a view different ways but with no luck lol just kept getting a blank page

    PHP Code:
    print $category['catalogname']."(".checkQuan($category['catalogid']).")<br />"

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    A link to where?
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Nov 2006
    Posts
    99
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    don't really understand the questions cause some info is missing in your original post. But it looks like you should add something like
    Code:
    <a href="[URL HERE]">[HYPERLINK TEXT HERE]</a>
    to your code.

    -GT

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    I'm assuming you want something like this:

    Code:
    print '<a href="URL">'.$category['catalogname'].'('.checkQuan($category["catalogid"]).')"></a><br />';
    but there is info missing in your original post. Please post more info so we can help out more.

    EDIT: Sorry, was typing up post, got sidetracked, and clicked post reply without going back and looking at the thread for new posters, GT.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •