Posts by Leonardo Duarte • 46 points
2 posts
-
2
votes2
answers54
viewsA: Select only if the ID is in 2 tables
Do so: SELECT * FROM inscricao1 INNER JOIN inscricao2 ON inscricao1.cod = inscricao2.cod
-
1
votes1
answer478
viewsA: Change Login button to logout
Put this on the pages that would like to appear the buttons, exchange the link for a button. if(isset($_SESSION['username'])) { echo '<a href="index.php?logout=1">LOGOUT</a>'; } else {…