The forums have permanently moved to This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.

Results 1 to 3 of 3

Thread: parse error?

  1. #1

    parse error?

    Hey people, I am having a weird parse error with my PHP code, I am not sure if it something simple and my mind is so coded out right now or something else.

        include "templates/edit.html";
    elseif($_GET[do]=="edit"): include "script/change.php"; 
    elseif($_GET[do]=="delete"): include "script/delete.php"; 
    elseif($_GET[do]=="view"): include "script/view.php"; 
    I get a parse error on the first if line,

    Parse error: parse error, expecting `']'

    But I close the get. Any help or explanations appreciated.

  2. #2
    do needs to be in quotes. if($_GET['do']):. Same with the others.

  3. #3
    thanks, i knew it was something stupid.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Home About Meet the Moderators Advertise

 Link to Us


Copyright 1999 - 2012