Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Flaviaac

  • Rank
  1. Ah, got it @justsomeguy. @Ingolme I tried using intval() to convert it, seems to worked. Thanks guys!
  2. Hi guys, I have a odd problem here. I'm a beginner and I have no idea what it can be.. 😑 ps. English is not my first language, so I hope you can understand... ☺️ In dropdown field below, I put in value property the ID column, but when it registers in the database, it saves as string type and not as integer. <?php $sql = "SELECT id, sigla FROM local ORDER BY sigla ASC"; $result = $conn->query($sql); ?> . . . <select name="local" class="form-control"> <option selected>Selecione...</option> <?php while($row = $result->fetch_as
  3. Hi guys, I'm beginning to learn PHP now, and i have too much doubts yet, so i would like some help. 😃 I want to delete a registry from table when i press the button "Apagar" like show in the picture below: When I press the button, it shows a message saying it was successfully deleted, but in fact it was not deleted in the DB. The message: Notice: Undefined index: id in .../teste_tabela3/deletar_produto.php on line 11 What did i do wrong in my code? code from "deletar_produto.php" file: <?php include_once 'cabeçalho.php'; in
  • Create New...