Unable to insert data into phpMyAdmin via comments form



Still no entry in the db? That is quite weird. It should either insert or give you an error. If it does neither of those I thinks I don't know how I can help you :confused:


Ah that is a shame but I am grateful for all your help so far. I cannot see your wings but you are an Angel..


Hey this is working now. I entered a value for all apart from comment_id and it inserted into the data. The only issue I have now is whitespace which i cannot not see. The placeholder for textarea is not displaying in the form and so to see it I have do several backspaces. is there an easier way to check whitespaces?

    <title>Women Who Can - Comments form
    <meta charset="UTF-8">
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
    <link rel="stylesheet" href="../_css/style.css">
    <link rel="stylesheet" type="text/css" href="../steph/_css/ss-pika.css" />
    <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
    <link href="../_css/styles.css" rel="stylesheet" type="text/css" />
    <div class="container">   
      <div id="unique-section" class="row">
        <div class="section">
          <form action="comments.php" method="post">
            <div class="form-group">
              <textarea name="comment_content" placeholder="Please add your comments here" style="height:200px; width:300px;font-size:12pt; align-vertical:" class="form-control">
            <div class="form-group">
              <input type="submit" name="comment_submit" class="btn btn-primary" />
    <!-- Bootstrap JS -->
    <script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous">
    <script src="ajax.js">


Thank you for all the assistance you have given me. This issue is now resolved as a result of your input.


@louisejean: when you post code on the forums, you need to format it so it will display correctly. (I've edited your post above for you.)

You can highlight your code, then use the </> button in the editor window, or you can place three backticks ``` (top left key on US/UK keyboards) on a line above your code, and three on a line below your code. I find this approach easier, but unfortunately some European and other keyboards don't have that character.


Thank you TechnoBear. The issue is now resolved.

closed #27

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.