Sunamena

Members
  • Content count

    68
  • Joined

  • Last visited

Everything posted by Sunamena

  1. This is currently my Function: function insertText(elemID, text) { var elem = document.getElementById(elemID); elem.innerHTML += text; } And this is my onclick: onclick="insertText('bericht', 'mytext');" What it needs to do is add mytext at the END of the current text in my Textarea. This function works, but as soon as i enter something IN the textarea, the function stops working. Does anyone here know how to solve this issue?
  2. 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.
  3. As dsonesuk sayd: you have to select them and then assign css to them. For example i have <td class="dontShow"> on my website. I do not want this cell to be seen. I have two options in CSS. .dontShow { Display: none; } Or .dontShow { Visibility: hidden; } The difference is, that display none will remove it from your webpage and the visibility will just make it not be there, but it will still take up the space as if it did exist.
  4. Strange something: It does indeed work like this: <head> ,,, <script type="text/javascript"> function insertText(elemID, text) { var elem = document.getElementById(elemID); elem.value += (' ' + text); } </script> ... </head> But i encounter the issues when i do this: <head> ... <script src="js/mylibrary.js"></script> ... </head
  5. Thanks, this works =D it seems that %s% Includes S and s. =D
  6. Hello, I want to have something like the WHERE command. A user types something, for example: "peer". I want a WHERE that also includes "Peer" and "PeEr" and "apeer" and "Peert. Is this by any chance possible? Thanks in advance =D
  7. As soon as i start typing in the textarea and press the image with the onclick command, it stops functioning. Both innerHTML and value put the content IN the textarea, but NOT anymore once any action has been preformed inside the textarea (such as deleted or typed something)
  8. Is a flexbox what you are looking for? With a flexbox you can easily grid content. And i find it easy to get it responsive. Here you can find a step by step guide. https://css-tricks.com/snippets/css/a-guide-to-flexbox/
  9. Is it possible to share the HTML and CSS code required for your entire canvas? That way we can better see and help solve your issue
  10. :voor is an INT. I do use Try and Catch, but i left that out of the code (i wanted to focus on the part that did not work). =D And dsonesuk: Yes i did, i did it once to much =D And the previous one had to be a fetchAll =D This problem has been solved. Thanks all =D
  11. Hello everyone, this is what i want to achieve: When someone looks in his or her Inbox, (s)he can see all messages directer to him or her. This is my code (the part which is needed for my question ;)): $sql = "SELECT * FROM berichten WHERE voor = :voor ORDER BY berichtid"; $stmt = $db -> prepare($sql); $stmt -> bindParam(':voor', $voor, PDO::PARAM_INT); $voor = $_SESSION["userID"]; $stmt -> execute(); $result = $stmt -> fetch(PDO::FETCH_NUM); $numberInResult = count($result)-1; // THIS IS TO CHECK MY RESULTS print_r($result); echo "<br><br><br>"; echo "<br><br><br>"; echo $numberInResult; // Number in results is 5. (Which is incorrect, the test person has 7 messages. The table does have 6 rows, which is why the result is 5, atleast i think. for ($i = 0; $i < $numberInResult; $i++) { ?> <div class="inbox-row"> <div class="inbox-data"> <?php echo $result["1"]; ?> </div><!-- --><div class="inbox-data"> <?php echo $result["2"]; ?> </div><!-- --><div class="inbox-data"> <?php echo $result["5"]; ?> </div><!-- --><div class="inbox-data"> Verwijderen </div> </div> // And i get to see 5 times the first message send to me. // Which should be 7 different messages send to me. // I also tried to use <?php echo $result["1"][$i]; ?> , this resulted in only having a single part of the String (which was something i learned thanks to this =D) So I would like to know the following: How to SELECT ALL the messages IN that table that are directed at ME? I want multiple columns selected, and echo'ed. I would love to thank anyone who answers this question in Advance =D
  12. Hello there, I think you want to know how your site looks on different resolutions? In Chrome, you can press F12 (followed by Ctr+Shift+M) to watch any site in a different resolution (you can even simulate certain handheld devices).
  13. I think you want to use an IFrame. <iframe src="http://villordsutch.tumblr.com/"></iframe> Tutorial: https://www.w3schools.com/tags/tag_iframe.asp
  14. Thankyou everyone. I got things working now =D Uploading files was new to me =D You all deserve a cookie!
  15. Hello everyone i have a few PHP questions. First one: How can I say that for each image in a specified folder, it has to place that image? I have 10 images in the gallery folder (tomorow it can be 12). How do i tell my code to place an <img src="filename"> for each image? Second question: When displaying something that a user posted (example: guestbook). How can i allow ENTERS to be displayed when getting the data from the database? It always skips the enters. Third question: How exactly can i allow users to upload a file to a certain folder (must be a jpg file). The name of the image will be modified, and it should be resized to 200 kilobyte. Fourth question: Can i change certain parts of the text i get from the database (example: ":)" and change it to something differently? Say: "<img src="smily.png>"? Thanks in advance for the answers =D
  16. Hello everyone. I want to create a system where people can post things. Like on this forum. But i am wondering. Should i save long text messages as one big and long string. Or should i use a different method? If you suggest a different method a link to a tutorial would be a big help n.n Thanks in advance kind mis or mister
  17. All i want is a simple border image as my HR. HTML should be: <hr> Simple enough CSS should be: ? Quite simple: ONE image as a SINGLE line, 100% height, and repeating horizontally.. This should not be quite difficult to do. But no matter what i try, the CSS is always doing things that i do not want it to do. So how would your CSS look like in order to achieve this task? I give you my sincere gratitude in advance!
  18. To answer the question: yes, that is certainly possible. How to do it: Depends on your HTML and CSS. Providing us this information would be very helpfull. Have you tried validating your CSS?
  19. It sounds like you want a drop down menu. You can find a tutorial here: https://www.w3schools.com/css/css_dropdowns.asp
  20. There is no CSS for a screen larger than 470 pixels if i see this correctly. You are also working with inline css and obsolete table sub tags such as border="0" cellspacing="0" cellpadding="0". CSS gets read like this: Use inline CSS Else Use the css in the head Else Use the css in the linked file. Maybe that is what is creating the conflict?
  21. I think Javascript or PHP is required to do the trick. I found the following solution on the internet: This is PHP code. So your page should be page.php Source: http://stackoverflow.com/questions/33581188/hide-audio-url-in-php
  22. Hello, Try to use a CSS file to style. Using inline CSS ( style="" ) will make editing your website hard, and will make it even harder to build one. One CSS file can be aplied to multiple webpages. As to solve your problem, why not consider using a Flex box? http://www.w3schools.com/css/css3_flexbox.asp
  23. Try something like this: CSS figure width:96%; margin:2%; figure img width: 100% display: block figure figcaption Same as figure img Adjust a little to your liking with colors borders and such. Also when using time you might want to consider using the html time tag. http://www.w3schools.com/tags/att_time_datetime.asp
  24. Well, it seems that the mistake was on my part. Thanks for the link =D
  25. If i am not mistaken: ul.topnav li:not(:first-child) {display: none;} not(:first-child) should be deleted. Not sure if the li before the :not should be deleted. Try that out =D