Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

3 Neutral

About Sunamena

  • Rank

Recent Profile Visitors

5,367 profile views
  1. Your textarea and email dont have a name (HTML). Could that cause a problem?
  2. I am currently on my mobile device so i can not check your code but i always jump to the part under guided. Are you sure the ID is at the correct place? And did you try to validate your code? Very handy to see you forgot something. https://validator.w3.org
  3. Image 2 is the closest to the last one (the example i presume?). The left div does not need any margin. Try adding: margin: 0; And the right div would need: vertical-align: top;
  4. I am not a big fan of Bootstrap, but i think this is what you are looking for: Example: https://www.w3schools.com/bootstrap/bootstrap_affix.asp Note that this is achieved by using JavaScript. You actually change the class after scrolling down.
  5. You can try to assign a clear propperty. Like in this example: https://www.w3schools.com/css/css_float.asp I think the "try it" tackles a problem like the one you are having right now. If it still doesn't work, be sure to reply
  6. I failed to find an example of something specific i am looking for. This is what i want: <img src="a.jpg" id="1"> <img src="a.jpg" id="2"> <img src="a.jpg" id="3"> <img src="b.jpg" id="dragable-1"> <img src="b.jpg" id="dragable-2"> When a draggable image (as seen in the ID), gets dragged onto another image i want this to happen: <a href="mylink.php?draggable=IDDRAGGABLE1&to=IDOFTHEIMMAGEITGOTDROPPEDINTO"></a> Can i find any tutorial on this? Is this difficult? Thanks in advance =D
  7. Sunamena

    Select and array

    Thankyou very much for your reply! Well, I will stick with PDO then. I managed to find a solution to make it work with PDO (and I am happy with that ). I did get error messages, but not anymore. I think the problem was on my end (or i was not patient enough). At the top of my document, to keep it organised i check all my input from the post. For the password i hash with sha1. Should i adopt using password_hash instead?
  8. Sunamena

    Select and array

    Hello everyone I have a small problem with my code. I will show the most important parts of it and hope you guys can assist me This is my code: $sql = "SELECT * FROM brusers WHERE userName = '$userName' AND password = '$wachtwoord'"; // Vraag alle resultaten op $stmt = $con -> prepare($sql); $deelStap=mysqli_query($con,$sql); $result=mysqli_fetch_all($deelStap,MYSQLI
  9. The new code should be MySqli $sql="SELECT * FROM nieuws ORDER BY nieuwsID desc"; $deelStap=mysqli_query($con,$sql); $result=mysqli_fetch_all($deelStap,MYSQLI_NUM); $numberInResult = count($result); But how to fetch one?
  10. Hey all, I have created a website on my local host. Now that i try to upload it, i get many errors. Such as this one: $result = $stmt -> fetchAll(PDO::FETCH_NUM); ERROR: Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetchAll() in /customers/c/5/e/sunamena.be/httpd.www/eldiemus/nieuws.php:290 Stack trace: #0 {main} thrown in /customers/c/5/e/sunamena.be/httpd.www/eldiemus/nieuws.php on line 290 And will this still be valid? $stmt -> bindParam(':datum', $datum, PDO::PARAM_INT); I also had to change my connection method
  11. Thanks. This problem has been solved =D
  12. Hello everyone, I have an issue with uploading an image, but i can not seem to figure out what might be the problem. I am new to adding images. I would like to thank you all in advance for your asistance =D This is the PHP code: And this is the form
  13. Hello everyone. The Flexbox design I am currently working on, is working fine as you can see here: http://bronies.be/example/index.html But there is an error on the following pages: http://bronies.be/example/contact.php It does not cover the full width. And even worse here: http://bronies.be/example/404.html It does not even show the aside image. Disclaimer: This is a work in progress. Only parts of the website have been uploaded in order to ask this question. I notice that this happens on pages with little content. But i do not want this to happen, but it does. What a
  14. Your code is fine. It works over here. Did you try it in different browsers? I used Chrome. Remember, if you ever visited the page, the color will be selected FROM visited, and not from link. Delete your cookies, close your browser, or try to type a link to a website your sure you have not yet visited.
  • Create New...