Note that there are some explanatory texts on larger screens.

plurals
  1. POError after execution of this script?
    primarykey
    data
    text
    <p>I get an error on the 4th line of this code. This doesn't make sense to me. It worked yesterday and now it doesn't.</p> <p>Here is the error message that I get after I include this: <code>Parse error: syntax error, unexpected T_STRING, expecting T_FUNCTION in /PATH/classes/users.php on line 5</code></p> <pre><code>&lt;?php class Users {     public static function load($where = NULL, $order = 'name', $bind = NULL) {         global $db;         $sql = 'SELECT cspsp_accounts.*, cspsp_clans.id AS clan_id, cspsp_clans.name AS clan_name, cspsp_clans.tag AS clan_tag ' .                'FROM cspsp_accounts ' .                'LEFT JOIN cspsp_clanlinks ON cspsp_accounts.id=cspsp_clanlinks.account_id AND cspsp_clanlinks.active=1 AND cspsp_clanlinks.approved=1 ' .                'LEFT JOIN cspsp_clans ON cspsp_clans.id=cspsp_clanlinks.clan_id ' .                'WHERE (cspsp_accounts.id=cspsp_clanlinks.account_id OR cspsp_clanlinks.account_id IS NULL) ' . (($where) ? ('AND (' . $where . ') ') : ('')) .                'ORDER BY ' . $order;         $rows = $db-&gt;run($sql, $bind);         if(is_array($rows)) {             $users = array();             foreach($rows as $row) {                 $users[] = new User($row);             }             return $users;         }         return false;     } } ?&gt; </code></pre> <p>Here is the full code: <a href="http://codepad.org/1qS7iwTv" rel="nofollow">http://codepad.org/1qS7iwTv</a> Thank you all in advanced!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload