Jump to content

Ingolme

Moderator
  • Posts

    14,901
  • Joined

  • Last visited

  • Days Won

    177

Everything posted by Ingolme

  1. X11 is not a web standard, it's a digital color standard from the 20th century. Honestly, any named color system is going to have its limitations, on the web I highly recommend ignoring named colors at all and using value-based systems, namely RGB and HSL. RGB is the closest to how computers process colors, but HSL allows for easier transitions between brightness or hue. In general browsers have 8 bits per channel and three channels: red, green and blue. This gives us 256 possble values for each color and 256^3 = 16,777,216 total colors. Computers are capable of showing more colors than that, usually using 32 bits to represent the color. There's no point in naming all of the colors, and the industry classification of colors is a subject that's pretty far removed from web development.
  2. What is [test-survey1]? If the table name is" test-survey", then you should have it between backticks `test-survey`, though I've never seen a table name with a hyphen in it before, I'm not sure it would be valid.
  3. The WebAIM does not state anywhere that skipping heading levels is incorrect.
  4. The name of the parameters you bind should match the name of the placeholders, not the name of the fields. Your parameter names should be ":Q1", ":Q2" and ":Q3", not ":FavMonster", ":FavVillian" and ":FavMovie"
  5. It looks like you're missing the FROM keyword here: SELECT * parent_table
  6. The problem is that you give the inputs an "af-textWrap" class which sets its width to 70% and shifts it to the right.
  7. What is the exact query you used?
  8. Clearly "table" and "ref_table" are placeholders for table names in your actual database.
  9. Most likely a syntax error is causing nothing to be displayed. Both of your print statements have an error. The first did not capitalize "Imagick", the second one has "->::"
  10. Ingolme

    Semantic UI

    Is that some kind of framework or are you referring to the action of using semantic mark-up to make user interfaces?
  11. VARCHAR almost always takes less space than CHAR, because it allows fewer characters than the limit while CHAR requires the full space to be occupied. If you put a smaller string in a CHAR field, it pads the rest with null bytes. If you put the string "Hello" in a CHAR(150) field, what you essentially have in the table is "Hello\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
  12. Yes, but you have to understand how each of the two things are made.
  13. If you learn a bit more Javascript, you can do any of that. You'll need to learn about event listeners and timing. I believe all of it is covered in the W3Schools tutorials.
  14. This is the button you are trying to give rounded corners to: <input class="submit" name="submit" pbzloc="50" size="1" style="font-size: 1.2em; height: 51px; width: 143px; color: white; background-color: #ff0000" tabindex="502" type="submit" value="Submit" /> It has "submit" as the value of the class attribute, therefore we use the class selector ".submit" to target the element.
  15. It looks like something that's being generated by the software that's building your page. You should learn more about CSS selectors. The issue you had was simply not applying the style to the correct element.
  16. That provides information about the current PHP file that's running, but says nothing about what URL the user is currently visiting.
  17. My only guess is that there is no database named "loginapp". You forgot an echo statement here, so this line of code won't show anything: if($database){'DATABASE FOUND';} You should not be using the mysql_* functions, they have long been deprecated in favor of proper secure database libraries, as of PHP 7 they have been completely removed. For database operations, check out PDO http://php.net/PDO
  18. Let's start off at the very beginning. These are your requirements: But you have another requirement: So to summarize your requirements: Display popups on the page any time it loads except under the following conditions: The user arrived on the page from clicking that image. The user has refreshed the page. Now we have to determine the following: How do we know that the user clicked on that image? How do we know that the page was refreshed? The resulting logic should be very simple: if(!clickedOnImage() && !pageRefreshed()) { showPopups(); } function clickedOnImage() { // Return true if and only if the image was clicked // Return false otherwise } function pageRefreshed() { // Return true if and only if the page was refreshed // Return false otherwise return performance.navigation.type == 1; } function showPopups() { // All the code that creates the popups is in here // This code is irrelevant to the problem we're solving } How do you want to detect that the request came from the image? Is it alright to pass data in a query string or hash in the URL? You could make the image a link with the following href attribute: href="overview.html?fromimage=1" and then use the location.search property in Javascript to check for that value. Another option, if you only care that it came from the page that the image is on rather than the image itself, is to check the document.referrer property. clickedOnImage() returns true of document.referrer is " http://www.grammarcaptive.com/single_payment_acknowledgment.php "
  19. I was not referring to PHP sessions, I was talking about Javascript's local storage API, but using PHP probably works as well.
  20. You misspelled onclick on this line <button onklick="compare()">Check</button>
  21. Your floated elements are getting in front of all the other buttons, blocking the clicks from getting to them. This is the issue: .et_pb_column { float: left; position: relative; background-position: center; background-size: cover; } On mobile devices, aside from setting width to 100% (or better, "auto"), you also have to set float to "none".
  22. You should not have to download all the files. Just use a <link> tag with the file URL in the href attribute. To be sure that the files are always available, it's best to only link externally to files with "cdn" in the URL and download your own local copy for the rest of them.
  23. Servers are key components of the internet, that's where websites are stored.
  24. If the file is on a CDN it's safe to link directly to it since they're built to be linked to. It should be safe to link to the W3Schools file as well, but personally I would download my own copy.
×
×
  • Create New...