Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Search results

  1. 220061

    JavaScript jqeury why does my array not exist?

    Hello I'm trying to loop through my php array in jqeury but when I do that it days it doesn't exist. this is weird to me because I'm able to use the array to create an variable in jqeury. I need a loop that starts at the first date, and adds 1 day until it reaches the end date. the php code...
  2. 220061

    JavaScript datepicker disable dates that are in db

    Hello, Does anyone know how I can disable certain dates in my calendar based on the dates that are in the db?? so if the db has start_date (start_datum) 1-7-2022 and end_date (eind_datum) 3-7-2022. Then I want the code to disable all 3 of those days. code: <?php include "config.php"; ?> <html...
  3. 220061

    PHP calendar making booked days red

    hello! i'm making a calendar that shows which days have been booked and which are available. In my db I have two important cols for this called: start_date and end_date (translation is start_datum and eind_datum) Now I'm trying to make the days that are booked have the red booked label. the...
  4. 220061

    PHP calendar in php

    I want to create a calendar in php but it's not working out so well I want to be able to make my < and > buttons work and change the date on top of the calendar with one month. but I I can't get it to work. right now the date on top of the calendar is 08-06-2022 and I don't know why this is the...
  5. 220061

    PHP Posting form to another page

    I don't understand what is going wrong here I have a form for my users called reservation.php this one (is supposed to ) goes to reservationback.php but I have been trying it and for some reason it goes to reservation.php?submit=submit why is this happening?? reservation.php this one is...
  6. 220061

    PHP posting chosen option to another page

    I'm not seeing what I'm doing wrong. so basically what I want is that users click the button and then the $row['name'] will be posted to another page. but for some reason I just can't get it to work?? can someone help me ? <?php $sql = "SELECT * FROM huizen"; $stmt =...
  7. 220061

    PHP posting to another page

    This is pretty easy but honestly I just can't seem to find what the problem is? I want to post my variabels to antoher page but when I do for example $_POST['lastname']; on the other page it says Warning: Undefined array key "lastname" in C:\xampp\htdocs\huizen_huren_website\registerback.php on...
  8. 220061

    HTML & CSS grid styling items from store

    I have been trying to style the items from my store right now I have this code <style> header{ background-image: url("brood.jpg"); } body { font-family: Arial, Helvetica, sans-serif; font-size: 20px; } section{...
  9. 220061

    CSS grid to put all my divs next to each other?

    Hello I'm tring to put all my divs next to eachother currently my page looks like this there are a lot of these t=divs and I want to put them next to each other so I thought of using grid but that makes them like this: I'm not that good with grid so how should I be able to fix this. I have...
  10. 220061

    PHP $_POST current_password won't post to another page

    Hi so right now I'm just thinkering around to slowly in the end try to make a password reset page right now I want to post variable to my reset password backend page but I can't seem to send any post variables to this page? I'm not seeing what I'm doing wrong code: passwordreset.php <?php //...
  11. 220061

    PHP how to store the quantities alongside the products which the user has added to their cart.

    Hello I'm trying to create this shopping cart and I dont understand how to store the quantities alongside the products which the user has added to their cart. I know I need a session but thats all i know. I have tried to do: $_SESSION['quantity'] = $_POST['quantity']; or making an array and...
  12. 220061

    PHP calculate total price based on quantity

    can I calculate the total price depending on the number that the user types into the input? so for example idk how to do this? this is my code. I have been looking around on the internet but they only gave me examples of how their shopping cart was looking. I don't want that I want ot be able...
  13. 220061

    PHP calculating price based on option

    how do I calculate the price based on the option that the user chooses?? <?php session_start(); error_reporting(E_ALL); ini_set('display_errrors', '1'); // session_destroy(); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport"...
  14. 220061

    PHP show item based on id in array

    I feel like i almost got the solution but I'm just not there yet maybe some of you can help me. I have this array where I put id's in. what I want to do is show in winkelmandje (a.k.a shopping cart) the items that are equal to the id. how do I do this? I just can't figure it out?? code <?php...
  15. 220061

    PHP keep item in cart

    hello I'm creating a shopping cart with an array but it doesn't keep the selected item in cart. how do I keep it in the cart? <?php error_reporting(E_ALL); ini_set('display_errrors', '1'); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta...
  16. 220061

    JavaScript clicking on button doesn't show title in the console.log

    Hello I'm following a tutorial on javascript and I try to implement this into my project but I have a problem. whenever I click on the add to cart button it doesn't show the title in the console.log like I want it to. how do I fix this this is my error: Uncaught TypeError: Cannot read...
  17. 220061

    PHP submit button sends to blank page loginback??

    Hello, I don't really know how to explain this but right now when I submit it stays on the loginback page andit gives me a blank screen? why is it doing this? I have already tried to display the error messages by using ini_set('display_errors', 1); ini_set('display_startup_errors', 1)...
  18. 220061

    PHP inserting twice?

    hello I'm trying to find out why my db inserts the same row twice., I just can't seem to find out why it does this? <?php include "navbar.php"; include "config.php"; ?> <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"...
  19. 220061

    looking things up on the internet

    My teacher always tells me: if you don't know how or what to do, just look it up on the internet! implying to just copy code on the internet and use that if you don't know how to do things yourself. but will this really help me? I have to look the most basic things up online and always have to...
  20. 220061

    PHP prepared statements

    Hello I have been programming for a while now and the thing that I just can't seem to be able to understand is prepared statements. Don't get me wrong I understand why I have to use it. but I don't understand how in a project. Do any of you have some easy tutorials?
Back
Top Bottom