SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member D-J's Avatar
    Join Date
    Aug 2001
    Location
    Somewhere Over The Rainbow.
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using PHP /MYSQL in Links

    Ok I'm a totally newbie to PHP.. Currently I've learned how to get the data from the My SQL database and display on pages..

    But I've seen sites using links like;

    /index.php?page=something

    What i was wondering is how do i do this? and is it calling information from the dtabase.. So far i have searched tons of Tutorials and Bought two books.. and still can't find anything on it..

    If someone could point me to a tutorial or if you have a page like this maybe a peek at the PHP code.. I'd appreciate it.


    Damon-Jad
    Gamer, Webmaster, DJ, Wannabe

  2. #2
    VICTORY IS MINE! luchazard's Avatar
    Join Date
    May 2001
    Location
    USA
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe its a matter of using POST instead of GET in the form?

  3. #3
    SitePoint Evangelist CyberFuture's Avatar
    Join Date
    May 2001
    Location
    San Diego, CA
    Posts
    434
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    When you see:

    /index.php?page=something

    Basically its a way of passing varibles to a page. In this case $page = "something". Also when using a form that sumbits to another page, the form method POST will add all the form elements and the values to the URL.

    A good tutorial is (of courde) Kevin Yanks' Building a Database-Driven Web Site Using PHP and MySQL.

  4. #4
    SitePoint Member D-J's Avatar
    Join Date
    Aug 2001
    Location
    Somewhere Over The Rainbow.
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, Ok I see.. Sorta acts like A SSI only using a Link to bring the new page in. Sorta..

    Cool Thanks.

    Damon-Jad
    Gamer, Webmaster, DJ, Wannabe

  5. #5
    Victory shall be mine tubedogg's Avatar
    Join Date
    Mar 2001
    Location
    Medina, OH
    Posts
    440
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually it's just the other way round - using GET will send the variables in the URL, using POST will send them "behind the scenes" as it were.
    Kevin


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
  •