Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Paola

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I figured it out. I had to put id here not uidUsers $sql2 ="SELECT * FROM users WHERE uidUsers='$id'"; $sql2 ="SELECT * FROM users WHERE id='$id'";
  2. Hello mac_gyver, Thank you for the input. The comments are being saved in DB now. I included the functions page in the page where the form is so it has access to that function. The comments are being saved in the DB now, but I can't retrieve them still =(
  3. Ok, the data is going into the DB now but I still cannot retrieve it
  4. Hello everyone, I am trying to submit a comment in a comment box and send it to the DB but is not happening. The connection is good as I am logging in and all but no data is sent to the DB when I post the comment. It doesn't show in my comment section either. Form <!--comment section--> <?php if(isset($_SESSION['id'])) { echo "<form method='POST' action='" . setComments($conn) . "'> <input type='hidden' name='uidUsers' value='".$_SESSION['id']."'> <input type='hidden' name='posted' value='" . date('Y-m-d H:i:s') . "'>
  5. Thank you so much. That fixed my issue. I still want to research why my results were so off and with new number =( Thank you again ?
  6. Thank you for your input. I still get the same result.
  7. <?php $a = array(-15, 3, 5, -1, -15); $b = array(1, 3, 5); function lowest_int ($c){ print_r(array_keys($c, min($c))); } print_r(lowest_int($a)); print_r(lowest_int($b)); ?> Hello guys the out of my code should be [0] => -15 [4] => -15 for the first array and [0] => 1 for the second array. However. this is my output: Array ( [0] => 1 [1] => 4 ) Array ( [0] => 0 ) Any ideas what am doing wrong? Thank you so much in advance!
  8. Thank you so much for your input. I was able to get this working ?
  9. I am trying to create a code where the user enters the zip code and if found in the database, a location will be retrieved. I am getting two undefined variables as errors. I am still learning the POST and GET method and I fear that is where I am getting something mixed up. I have also attached an image of my DB. Thank you so much any input is greatly appreciated. Notice: Undefined variable: address in C:\xampp\htdocs\index.php on line 53 Notice: Undefined variable: zip in C:\xampp\htdocs\index.php on line 54 index.php file code: <?php include ('hea
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.