SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: **Need Help**

  1. #1
    SitePoint Member BillyBean2009's Avatar
    Join Date
    Jul 2001
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    **Need Help**

    Aight, still new at php
    I wanna make a script to call upon certain things inside one file ie:"?m=news"
    and it load the information in the news section..
    If you don't kow whut I mean, I'll try it again after.
    Beyond Good.
    Beyond Evil.
    Beyond Your Darkest Imagination.

  2. #2
    SitePoint Addict zoordaan's Avatar
    Join Date
    Feb 2001
    Location
    NYC/Texas
    Posts
    348
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're going to need to use variables and a control statement to accomplish this.

    Take a look at the explanation for variables http://www.php.net/manual/en/language.variables.php
    and for control structures http://www.php.net/manual/en/control-structures.php at the php homepage.

    You could use if statement, to check to see if the variable $m is set, then if $m has a value do something, if it doesn't have a value do something else.


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
  •