0 Members and 1 Guest are viewing this topic.
<?phpsession_start();$_SESSION['lose'] = 'THE GAME';echo $_SESSION['lose'];?>
res = $sql->query("SELECT `B.bi, `B.bn`, `B.bs` ". "FROM `Blah B` LEFT JOIN `Ah_Blah` A ON A.bi = B.bi ". "WHERE A.ai = `%s`;", [$_SESSION['ui']]);
res = $sql->query("SELECT `B`.`bi`, `B`.`bn`, `B`.`bs` ". "FROM `Blah` B LEFT JOIN `Ah_Blah` A ON `A`.`bi` = `B`.`bi` ". "WHERE `A`.`ai` = %d;", [$_SESSION['ui']]);
As it is SQL you don't need to join, it doesn't care about line breaks and weird tabs