PHP text links

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neil Trigger

    PHP text links

    I was wondering if there's a way of getting info back from a database using
    PHP without using forms, but text links instead?

    I think it's similar to the way the likes of yahoo make their search
    engines. The user types something and the engine brings back everything
    matching certain key words. These are links and when the user click them, it
    brings back the whole listing.

    If anyone knows how to do it, I'd very much like to find out.

    Thank you.

    --
    ¿ Trigger ?




  • Tim Van Wassenhove

    #2
    Re: PHP text links

    On 2003-12-22, Neil Trigger <email@magic2k. com> wrote:

    Ok, you really keep on multi-posting...

    There is an answer in alt.php.sql

    --
    verum ipsum factum

    Comment

    • Ed Seedhouse

      #3
      Re: PHP text links

      On Sun, 21 Dec 2003 17:39:50 -0800, Neil Trigger wrote:
      [color=blue]
      > I was wondering if there's a way of getting info back from a database using
      > PHP without using forms, but text links instead?[/color]

      You mean hyperlinks.
      [color=blue]
      > I think it's similar to the way the likes of yahoo make their search
      > engines. The user types something and the engine brings back everything
      > matching certain key words. These are links and when the user click them, it
      > brings back the whole listing.[/color]
      [color=blue]
      > If anyone knows how to do it, I'd very much like to find out.[/color]

      You use the GET method and put the variables in the url.
      Eg. something like

      <a href="page.hph? word=grok">clic k here</a>

      This will pass the variable "word" with the value "grock" to the
      specified url, which if it is PHP code can read it with
      $variable=$_GET["word"];

      For more info on how to use the GET method, read the fine manual.

      Ed

      Comment

      • Neil Trigger

        #4
        Re: PHP text links

        Yes, but did you notice how the question was different?
        I recognise that you visit more than one group, but some people don't. I'm
        sorry you don't agree with my practices, and I really do appreciate your
        help (though I couldn't get your scripting to work) but I really do feel
        that the best way to get my message to the most people is to post in the
        most amount of places.

        It's like advertising the fact that i have a problem.

        Any company would be foolish to only advertise to one customer alone.

        I hope that explains why I posted and hope you can forgive me.

        --
        ¿ Trigger ?




        Comment

        • Agelmar

          #5
          Re: PHP text links

          Neil - people aren't mad that you're "advertisin g your problem" in more than
          one place. They're mad about *how* you're doing it. If you cross-post
          (specify all newsgroups in the Newsgroups: line of *one* post) rather than
          multiposting (posting a separate message to each group), then replies will
          show up in all groups.

          Crossposting allows you to advertise your problem to multiple groups while
          only having *one* thread of conversation. People can see answers posted from
          any group in any group, and can build on those answers rather than repeating
          things. When you multipost, each thread is a separate conversation, and
          leads to repetition and wasted time on the part of the posters.

          With that said, I hope I have been clear in the differences between cross-
          and multi-posting, and why cross-posting is favorable. Please, if you want
          to post the same things to multiple groups, cross-post it rather than
          multi-posting it.

          -Ian Fette
          Proponent, comp.lang.php

          Neil Trigger wrote:[color=blue]
          > Yes, but did you notice how the question was different?
          > I recognise that you visit more than one group, but some people
          > don't. I'm sorry you don't agree with my practices, and I really do
          > appreciate your help (though I couldn't get your scripting to work)
          > but I really do feel that the best way to get my message to the most
          > people is to post in the most amount of places.
          >
          > It's like advertising the fact that i have a problem.
          >
          > Any company would be foolish to only advertise to one customer alone.
          >
          > I hope that explains why I posted and hope you can forgive me.[/color]


          Comment

          • Neil Trigger

            #6
            Re: PHP text links

            Oh i see.
            Well the first time I did that I put the newsgroups addresses in the address
            bar and for some reason it didn't work.

            I think I'll have to find out what my browser was doing and how to cross
            post as opposed to multi-posting.
            It was a very clear explanation, thank you.
            Is this what you meant Tim?

            --
            ¿ Trigger ?




            Comment

            • Geoff Berrow

              #7
              Re: PHP text links

              I noticed that Message-ID: <F%oFb.41$nj.23 @news-binary.blueyond er.co.uk>
              from Neil Trigger contained the following:
              [color=blue]
              >I think I'll have to find out what my browser was doing and how to cross
              >post as opposed to multi-posting.[/color]


              The other reason to cross post is that people in many groups may also be
              interested in the answer. If you get the answer in just one, you will
              be happy, but everyone else will be left wondering
              --
              Geoff Berrow (put thecat out to email)
              It's only Usenet, no one dies.
              My opinions, not the committee's, mine.
              Simple RFDs http://www.ckdog.co.uk/rfdmaker/

              Comment

              • Tim Van Wassenhove

                #8
                Re: PHP text links

                On 2003-12-22, Neil Trigger <email@magic2k. com> wrote:[color=blue]
                > Oh i see.
                > Well the first time I did that I put the newsgroups addresses in the address
                > bar and for some reason it didn't work.[/color]

                Spank your client ;)
                [color=blue]
                > I think I'll have to find out what my browser was doing and how to cross
                > post as opposed to multi-posting.
                > It was a very clear explanation, thank you.
                > Is this what you meant Tim?[/color]

                Yes.


                --
                verum ipsum factum

                Comment

                Working...