Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($_SESSION['UserUID'] == true) {
- $arrayNomes = [];
- require 'conectar/conexao.php';
- $sql = $conn->query("SELECT CharName FROM PS_GameData.dbo.Chars WHERE UserUID = ".$_SESSION['UserUID']." ");
- $sql->execute();
- while ( $obj = $sql->fetch(PDO::FETCH_NUM)) {
- $arrayNomes[] = $obj[0];
- }
- foreach($arrayNomes as $nome){
- echo $nome;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement