Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. 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

    PHP if option 0 is choosen then set timestamp in col

    just saw that but it still doesnt fix my errors : Errors: Notice: Query was empty[] in C:\xampp\htdocs\uitleensysteem\code\edit.php on line 151 Fatal error: Uncaught Error: Call to a member function bind_param() on boolean in C:\xampp\htdocs\uitleensysteem\code\edit.php:152 Stack trace: #0...
  2. 220061

    PHP if option 0 is choosen then set timestamp in col

    Hello I'm kinda stuck here and I don't know what to do. I have this code where I want to (based on the choice that the user made) put the timestamp into my table its goes like this if you choose option 1 then insert NULL into both the columns inlever_datum and uitleen_datum if you choose option...
  3. 220061

    HTML & CSS Very basic HTML/CSS question...

    @cbreemer something like this right? try this: <html> <style> * { margin: 0; } </style> <body> <div style="background-color:lightblue;"> top </div> <div style="background-color:wheat;"> <h3>middle</h3> </div> <div style="background-color:teal;">...
  4. 220061

    PHP update submit button not updating specific row

    it broke again dont know why but I will try to find it out
  5. 220061

    PHP update submit button not updating specific row

    no I was trying to see different possibilities to solve this problem en forgot that I edited it sorry about that I have solved the problem now: <?php //misschien cookies gebruiken om oude gegevens te otnhouden include "mysqli.php"; include "navbar.php"; ?> <!doctype html> <html> <head> <link...
  6. 220061

    PHP update submit button not updating specific row

    or maybe the error is in here? this is a table. You click on edit and it will direct you to edit.php <?php //print_r($_SESSION); laat de array zien met informatie over het ingelogde user include "mysqli.php"; if(isset($_SESSION["ID"])) { // ingelogd $sql = "SELECT ID, naam, beschrijving...
  7. 220061

    PHP update submit button not updating specific row

    did an update down here by saying ID=? and adding it to the bind_param but it still updates nothing // informatie naar de DB sturen if (isset($_POST["submit"])) { //update statement //update studentnummer beschrijving beschikbaar...
  8. 220061

    PHP update submit button not updating specific row

    full code of edit script: I define ID on line 93 <?php //misschien cookies gebruiken om oude gegevens te otnhouden include "mysqli.php"; include "navbar.php"; ?> <!doctype html> <html> <head> <link rel="stylesheet"...
  9. 220061

    PHP update submit button not updating specific row

    @Ghost priviledges: translation for the words (used google translation for this so I hope you understand what I mean): gebruikernaam: username servernaam: servername type: type Rechten: Rights toekennen: award actie: action globaal: global Ja: Yes rechten bewerken: edit rights exporteren: export
  10. 220061

    PHP update submit button not updating specific row

    @Ghost sorry for the late reply first of all you are right: Leeg means NULL there is nothing in there and Nee means No. This is what I get when I tuse those codes: I will check for user priviledges in a sec because I'm not really that good with that. I didn't assign a secial privledge...
  11. 220061

    PHP update submit button not updating specific row

    just wanted to add this to it maybe it helps? maybe I have done something wrong here ? this code is for if you want to add something to the db. it works so there is no problem with this one but I tought maybe I did something wrong here and that it might be effecting my UPDATE statement...
  12. 220061

    PHP update submit button not updating specific row

    yes but I don't only have 4 columns in my DB I have 5 but the thing about this is that I dont want my users to be able to change naam
  13. 220061

    PHP update submit button not updating specific row

    I don't underd=stand how and why ? <?php //link voor het stoppen van empty values //dit zou alles naar de database moeten sturen als je op de knop drukt $ID = $_GET["ID"]; var_dump($ID); // informatie naar de DB sturen if...
  14. 220061

    PHP update submit button not updating specific row

    hello my update button is not updating a specfic row that I selected instead it updates everything how do i stop it from doing this? my suspision is maybe the ID however I don't know what to really call with this? isn't the update statement: UPDATE table SET col1=?, col2=? col3=?; //variables...
Back
Top Bottom