Posted by _lithium Tue 27th Feb 2007 18:23 - Syntax is PHP - 16 views
Download | New Post | Modify | Hide line numbers
      
Download | New Post | Modify | Hide line numbers
        PHP parser reported the following syntax error in this post:
Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in post on line 27
      
      Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in post on line 27
- 
              class Stupidsortproblem{
- 
              
- 
              public $sortBy;
- 
              public $sortDir;
- 
              public $limit;
- 
              
- 
              public $query;
- 
              public $debug = false;
- 
              
- 
              'Dice Rate' => 'rate',
- 
              'Genre' => 'genre',
- 
              'Seen' => 'seen');
- 
              function __construct(){
- 
              $this->pull_GET_Vars();
- 
              $this->craft_Query();
- 
              if($this->debug === true){
- 
              }
- 
              $this->display_Results();
- 
              }
- 
              
- 
              function pull_GET_Vars(){
- 
              }
- 
              
- 
              
- 
              function craft_Query(){
- 
              $this->query = "SELECT
- 
              id,
- 
              overview,
- 
              title,
- 
              rate,
- 
              genre,
- 
              seen
- 
              FROM
- 
              log
- 
              ";
- 
              if($this->sortBy !== false){
- 
              $this->query .= "
- 
              ORDER by {$this->sort} {$this->sortDir}
- 
              ";
- 
              }
- 
              $this->query .= " LIMIT {$this->limit} ";
- 
              }
- 
              
- 
              function display_Resutls(){
- 
              
- 
              $displayDir = ($this->sortDir == 'asc') ? 'desc' : 'asc';
- 
              
- 
              $html = '
- 
              
 '';foreach($this->thArray as $displayName => $columnName){$fontWeight = ($columnName == $this->sortBy) ? 'bold' : 'normal';$html .= '$fontWeight.';">'; $html .= '\'pointer\'onclick="document.href=\'?sort='.$columnName.'&sortdir='.$displayDir.'\'">'.$displayName.'';}$html .= ''.$obj->title.' '.$obj->rate.' '.$obj->genre.' '.$obj->seen.' ';}$html .= '
- 
              }
- 
              }
PermaLink to this entry https://pastebin.co.uk/11082
        Posted by _lithium Tue 27th Feb 2007 18:23 - Syntax is PHP - 16 views
Download | New Post | Modify | Hide line numbers
      
Download | New Post | Modify | Hide line numbers
 
    
Comments: 0