Working on a CMS in php need help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • awesomeamateurs
    Registered User
    • Mar 2007
    • 78

    #1

    Working on a CMS in php need help

    im working on this cms and i keep getting



    Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\mega_site\includes\functions.php on line 27


    PHP Code:
    <?php
        // This file is the place to store all basic functions
        
        function confirm_query($reulst_set){
        if (!$result_set) {
            die("Database selections failed: " . mysql_error());
            }
         }
        
        function get_all_subjects() {
        global $connection;
        $query = "SELECT *
         FROM subjects
         ORDER BY position ASC";
        $subject_set = mysql_query($query, $connection);
        confirm_query($subject_set);
        return $subject_set;
        
        }
    20    
    21    function get_pages_for_subject($subject_id) {
    22    global $connection;
    23    $query = "SELECT * 
    24            FROM pages
    25            WHERE subject_id = {$subject_id} 
    26            ORDER BY position ASC"
    27    $page_set = mysql_query($query, $connection);
    28        confirm_query($page_set);
    29        return $page_set;
    30        }
    31    }    
    32   ?>
  • Sams_gfy
    Confirmed User
    • Aug 2004
    • 491

    #2
    You forgot ; after ORDER BY position ASC" (line 26)


    Originally posted by awesomeamateurs
    im working on this cms and i keep getting



    Parse error: syntax error, unexpected T_VARIABLE in C:\wamp\www\mega_site\includes\functions.php on line 27
    Work with PPC SE ( Umax, 3FN Marketing) and GET PAID FOR EVERY CLICK !!!
    Next step after PPC - Pay Per Lead/Action
    Good, filtered traffic: Chocker, Traffic Holder || My favourite hosting: HQ Host

    Comment

    • sysk
      Confirmed User
      • Aug 2007
      • 1005

      #3
      easy one :p
      icq: 612510168 / email: [email protected] / php ninja 4 hire

      Comment

      Working...