SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict SniperUK's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How can i creat Index.php3?id=pictures?page=2
    and so on heres the current code

    <?
    if ($id == "news") {
    include("news.php3");
    } elseif($id== "pictures") {
    include("pics.php3");
    }?>

    [This message has been edited by Luqman (edited August 16, 2000).]

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What exactly is the problem? One thing
    Index.php3?id=pictures?page=2
    should be:
    creat Index.php3?id=pictures&page=2

    Notice yours had two ? you can only have one plus a & for each additional variable!


  3. #3
    SitePoint Addict SniperUK's Avatar
    Join Date
    Jul 2000
    Location
    UK
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    sorry my mistake it should be
    Index.php3?id=pictures&page=2
    well i need a code so the above code is entered for page 2 so i dont have to creat
    index.php3?id=pictures2 I think
    index.php3?id=pictures&page2 will be faster for me. Is there a example site with this kind of code.
    Thanks Again

    [This message has been edited by Luqman (edited August 16, 2000).]


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
  •