Results 1 to 2 of 2

Thread: php switch

  1. #1
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default php switch

    is it possible to create a dynamically generated php switch statement which gets it's contents from a mysql database. i have no problems creating a switch statement on its own, but when i try to create one based on the contents of a database, i get an error message because the switch line is not immediately followed by a case line.

    any help would be apreciated.

  2. #2
    Join Date
    Jun 2007
    Posts
    17
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    ok, i've solved this problem now. had a bit of a brain freeze, but realised i don't need a switch statmement, i can just use the variable directly to access the corresponding row on the database.

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
  •