Posts by Marcos A. Massini • 21 points
9 posts
-
0
votes1
answer278
viewsQ: Error in captcha
I have the following error in the captcha: Notice: Undefined index: captcha in C: xampp htdocs darknetwork index.php on >line 7 and also it is only returning me the Else even if you give a F5 on…
-
0
votes1
answer59
viewsQ: Php showing only one database value
php is showing only 1 value in the tables, I needed it to show all, one below the other. <?php require 'pages/header.php'; ?> <?php if(empty($_SESSION['cLogin'])) { ?> <script…
phpasked Marcos A. Massini 21 -
0
votes0
answers33
viewsQ: Show total value only if PAID
I have a selection system that sends PAID to the database as ID: 1 and NOT PAID as ID: 0, and I did a check instead of appearing the value 1 or 0 appear PAID or NOT PAID. So far so good, plus I a…
phpasked Marcos A. Massini 21 -
0
votes4
answers687
viewsA: Add all values that are in the database and show on screen
<?php require 'pages/header.php'; ?> <?php if(empty($_SESSION['cLogin'])) { ?> <script type="text/javascript">window.location.href="login.php";</script>…
-
0
votes4
answers687
viewsQ: Add all values that are in the database and show on screen
They could give me a help, I have a table where I need to show the total of values, in case add all the values that this in the database and show in the table. My table calls ads and the value…
-
0
votes2
answers982
viewsQ: Parse error: syntax error, Unexpected ';' in C: xampp htdocs edit-anuncio.php on line 68
My line 68 is like this. <option value="0"<?php echo ($info['estado']=='0')?'selected="selected"';'';?>>Não Pago</option>
phpasked Marcos A. Massini 21 -
1
votes0
answers26
viewsQ: Inhibiting access through the URL
I want to know if this way is correct: inhibited page <?php if (!isset($_SESSION)) session_start(); if (!isset($_SESSION['usuario'])) { session_destroy(); header("Location: login.php"); exit; }…
phpasked Marcos A. Massini 21 -
1
votes1
answer27
viewsQ: The record is not found in the database when the user logs in
I am trying to verify the existence of a user in the database when it performs the login. The user and password are already created in the database, but even then the check only enters the else.…
phpasked Marcos A. Massini 21 -
0
votes1
answer30
viewsQ: Php does not want to write registration data to the database
<?php include_once("conexao.php"); $nome = $_POST['nome']; $email = $_POST['email']; $senha = $_POST['senha']; $sql = ("INSERT INTO `usuarios`(`nome`, `email`, `senha`)…
phpasked Marcos A. Massini 21