Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. You could give the body an overflow: scroll property to always have a scrollbar there.
  2. I don't see any menus or dropdowns in the file you have attached. Clicking on the words just reloads the page. I would guess that the menu is causing a scrollbar to appear, so the page has to move to the left to accommodate for it.
  3. I've never seen anything like this before. What happens if you remove the SVG line from the font definition?
  4. You can use indexOf() to see if the search term can be found in each item in the array.
  5. That is not very descriptive. What code have you written and what exactly is it meant to do?
  6. What is the expected result?
  7. This code needs to run on a web server. If you open this from your local filesystem, the request to load the content will be blocked by the browser's security features. If you are running this on a web server, make sure that the file header.html is in the same folder as the file that is including it.
  8. That's not really a security threat since those characters cannot be used to change the functionality of a query. it will merely change the the term you are searching for. It is up to you to escape those characters manually if you are going to use it in a LIKE query. If mysqli_real_escape_string actually escaped percentage signs and underscores, a majority of queries would stop working or work incorrectly, as in these examples: $value = mysqli_real_escape_string('50%'); SELECT * FROM table WHERE value = '{$value}' $filename = mysqli_real_escape_string('image_file.png'); SELECT * FROM
  9. The main reason to avoid new features such as var() is so that your website won't break in browsers that don't have proper support. It is your choice to use new technologies on your website, but generally libraries and frameworks try to be compatible with as many browsers as reasonably possible so that they can meet the needs of all of the people who use them. It's a matter of how much you value your convenience over the accessibility of a percentage of the users on your websites.
  10. How is your Javascript proficiency and how good are you at trigonometry?
  11. The condition being tested in that case would be (!x), and that condition is true when x is false. The if statement is still testing whether the condition between the brackets returns true.
  12. MySQLi gives you a result set, it is a bit like an array but you don't have direct access to it. The result set starts off with a pointer pointing to the first element in the array. Each call to mysqli_fetch_array() will return the element that the pointer is currently pointing to and then move the pointer to the next element in the result set. Once there are no more rows left in the result set, mysqli_fetch_array() returns false and leaves the pointer pointing to nothing. The mysqli_data_seek() function lets you choose which element in the internal array to point to. Obviously, if you wa
  13. Do you know what the mysqli_data_seek() function does?
  14. Ingolme


    They have resolved the issue.
  15. I checked their site and the issue has been fixed.
  16. It seems a lot of people signed up to the forums to point out this issue. I checked their site and they fixed it now.
  17. Their SSL certificate is working now.
  18. I noticed that earlier today but it seems to be fixed now.
  19. Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why.
  20. It will take a bit of time to learn, but this is a job well suited for regular expressions: https://www.php.net/preg_match http://www.regular-expressions.info/
  21. If you just want a link to another page, just use an <a> tag with an href attribute and then use CSS to make it look like a button. If this button belongs to a form, you can set the form's action attribute.
  22. Don't copy the examples, just use the mysqli_data_seek function to reset the pointer to the first row of the results before looping through them a second time.
  23. When the information isn't detailed enough on W3Schools I tend to check MDN (for example https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul ). Elements like <ul> though, have been around for so long that they predate all modern browsers and have always been supported, so you won't usually see version numbers on them.
  24. To go through the elements again, use mysqli_data_seek() to return to the first element. https://www.php.net/manual/en/mysqli-result.data-seek.php
  25. W3Schools is the right place for that, but you should start your own topics instead of replying to an old and unrelated one.
  • Create New...