Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

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. 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.
  7. 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 files WHERE filename = '{$filename}'
  8. 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.
  9. How is your Javascript proficiency and how good are you at trigonometry?
  10. 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.
  11. 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 want to iterate through all the rows again, you will want to point to the first element again. This should be all the information you need to solve your problem.
  12. Do you know what the mysqli_data_seek() function does?
  13. Ingolme

    Certs

    They have resolved the issue.
  14. I checked their site and the issue has been fixed.
  15. 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.
  16. Their SSL certificate is working now.
  17. I noticed that earlier today but it seems to be fixed now.
  18. Surprisingly, we get people putting their usernames as a topic title quite frequently. I don't know why.
  19. 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/
  20. 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.
  21. 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.
  22. 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.
  23. 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
  24. 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...