SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: php query ..

  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Taiwan
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    php query ..

    Jasont
    I use php to select a book name from mysql, but I got a problem...
    I send two value so the link like this:
    php?a=abc&b=cde
    But today my book name is abc&cde,if I send the query will be php?a=abc&cdeb=.
    How can I solve this? Can someone tought me? Thank you for your help.

  2. #2
    Happy Holidays !! Paul S's Avatar
    Join Date
    Mar 2001
    Location
    Mexico
    Posts
    1,287
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In most of the PHP configuration you can access as global varibles, ie, if you have

    something/php?a=abc&cdeb=[/url]

    all you have to do is check

    if (isset($a))
    echo "\$a = $a<br>"; <-- that prints "$a = abc"

    if (isset($cdeb))
    echo "\$cdeb = $cdeb<br>"; <-- prints nothing (because cdeb is set to a NULL value)

    have you read this tutorial, It could give you more information


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
  •