Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. URLs in external stylesheets are relative to the location of the stylesheet itself rather than the page. I can't tell if this is your problem or not since I don't know if your CSS is in an external stylesheet.
  2. Images are inline by default. All inline elements are placed at the text baseline. There is always a bit of space reserved below the baseline, which is for hanging letters like "g" or "y", and you see this space below the image. In order to fix this, you can either make the image a block, or set its vertical align to "middle".
  3. The variable "txtWeight" is not initialized anywhere and there is no such thing as a "result" property on ordinary HTML DOM elements.
  4. The buttons are inline elements inside each "row" block, so you can center them by setting the text-align of the row to center. .row { text-align: center; }
  5. Ingolme

    SQL Tryit Editor

    What code did you use?
  6. I don't know of any most popular editor, each person just goes with what works best for them. I mostly use Notepad++ and Atom at my job. I hear Sublime is popular, but it costs money. I don't know much about SciTE, but from what I saw of it, it looks pretty primitive. It might be useful for editing local files on a Linux machine, but I'm not sure it has enough features to do serious software development.
  7. This editor is not familiar to me, but here is an article indicating how to make SciTE save files with UTF-8 encoding: https://cstan.io/?p=8557&lang=en
  8. The problem is that your text editor is generating an ANSI or ISO-8859-1 file, but the PHP engine things it's UTF-8 so it is being misinterpreted. You code editor, Notepad, Visual Studio, Sublime, Atom.io, DreamWeaver, whatever it is, needs to save the file with a UTF-8 encoding.
  9. It's not a PHP setting, you need your text editor to set the encoding of your PHP file to UTF-8. Which code editor are you using to write code?
  10. It is likely that your PHP file is not encoded as UTF-8. Your code editor should have the ability to set the encoding to UTF-8.
  11. It looks like a mistake. You can let the staff know by clicking the "REPORT ERROR" button at the bottom of that page.
  12. It works fine for me. The browser is parsing these entities before showing them to you on the screen, so you won't see something like "&lt;". If you want to see the entity codes without the browser parsing them then output your content with a plain text header. <?php if(isset($_POST['char'])) { header('Content-Type: text/plain'); $char = $_POST['char']; $char2 = htmlspecialchars($char); $char3 = htmlentities($char); echo "Teclado: {$char}\r\n"; echo "Repuesta 1: {$char2}\r\n"; echo "Repuesta 2: {$char3}\r\n"; exit; } ?> <form method="POST"> <input type="text" name="char" size="6"> <input type="submit" name="submit" value="Search!" /> </form>
  13. You should go through the SQL tutorial, there are tons of example of SELECT queries. This is very basic SQL, if you cannot spot the syntax errors then you're missing the most basic knowledge of SQL. We've gone through this before in other threads, you can't just take code from somewhere else and make random edits in the hopes that it will work. You need to understand the language you're working with. I am not even going to get into the SQL injection vulnerabilities in your code, but that is something you should do some reading on as well if you don't want your website to be hacked.
  14. By "not working" what do you mean? Does the frame exist? If so, what is inside the frame?
  15. The grammar is correct, slid is the past tense of the verb slide.
  16. Basically by counting pixels. A good image editing program will be able to tell you the coordinates on a bitmap. The issue with image maps is that they don't scale if you resize the image in HTML or CSS.
  17. There should be another <script> tag which loads the carousel plugin. Can you verify that it exists?
  18. This is not valid Javascript syntax, you can't have a literal value on the left side of an assignment operator. Maybe that's a thing in Node.js, but I don't have any experience with that.
  19. I'm not sure where you heard about this. If I had some context I could understand your question better. Most likely it means that PHP constant names are case insensitive meaning that "constant" and "CONSTANT" point to the same place. You can create your own constants using the define() function. PHP has thousands of built in constants, you will have to search the manual on php.net. Here are a few of them: String constants Array constants Math constants cURL constants
  20. I think minDate expects a string with a specific format. You just passed in a Date object. You need to generate a string something like this: minDate: dateMin.getDate() + "/" + dateMin.getMonth() + "/" + dateMin.getYear(), If that doesn't work, it's probably because you need to pad the day and month with zeroes on the left.
  21. I usually give the tag a max-width in ems so that regardless of font size it always breaks at the same place. This solution requires no change to the HTML. Add text-align: center and a left and right margin of auto to keep it all centered.
  22. Can you provide a link to the tutorial page?
  23. I am locking this thread as people are posting links to websites that violate W3Schools copyright.
  24. It's optional, I don't see a reason to use it.
×
×
  • Create New...