Jump to content

Funce

Moderator
  • Content Count

    541
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Funce

  1. Funce

    simple c++ program

    You've redeclared your i variable inside your if statement. The i++ is incrementing that i rather than the i that's being outputted.
  2. Funce

    python

    What's important with these operators, is that they perform Binary Arithmetic. So to understand it, you need to understand X and Y in Binary. X (101)= 5 Y (011) = 3 ^= Is the python bitwise XOR operator, and the result of XORing X and Y is the following X ^= Y (XOR) (110) = 6 Similarly |= is the Bitwise OR operator, and so X |= Y (OR) (111) = 7 And &= is the bitwise AND opereator, and so X &= Y (AND) (001) = 1 Each operation is applied to each digit in sequence.
  3. Take a look at our Media Query Tutorial page. Let me know if you have any questions about it.
  4. You might have some conflicting styles in there. Can you paste your stylesheet in a code block?
  5. Node's mysql module doesn't support Mysql server 8 authentication just yet. So we need to change the server so that it uses the old version of auth. If you can execute an SQL query (not in node), then you can run the following ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password' Replacing, 'password' with your own password of choice. (Assuming you're still user root on localhost domain.) Then run flush privileges; And try node after that.
  6. Could you include the stylesheet with this? I'm not able to recreate the issue with what you've shown.
  7. Try using z-index for this one. Higher numbers go on top of lower ones.
  8. Give "MySQL Community Server" a try, and you'll be able to choose your OS after that.
  9. You could try inspecting the element in your browser and see what styles are applied to it. Might be some margins applied that you can't see.
  10. Funce

    Node and Mamp?

    Hey there, its all technically possible, and there are many solutions out there for merging technologies. If you can activate MySQL on its own, without any other webserver running, I don't believe it would be any different from accessing any other MySQL Database inside Node. I'm pretty sure Node won't know the difference either.
  11. So does your Database have the values 'Grognak', 'White', 'Ice Blue', 'Strength', and 'Charisma' in it? If it does, your script is currently working the way its written. Your SQL query will need adjusted to include the variables rather than those hard coded strings, you've put in. You might be interested in something called "Prepared Statements" for safe passing of data. Here's one of my examples I like to use: <?php //This line is for highlighting on the forum, just make sure the code below is inside a php block //PREPARED STATEMENTS - FUNCE //INSERT EXAMPLE $string_var = "String"; $double_var = 3.5; $int_var = 45 $sql = "INSERT INTO table (column1, column2, column3) VALUES (?, ?, ?)"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_bind_param($stmt, "sdi", $string_var, $double_var, $int_var); mysqli_stmt_execute($stmt); mysqli_stmt_close($stmt); Here's the Documentation on what I've used (Procedural Style is the one you want to look at) mysqli_prepare mysqli_stmt_bind_param <- The important one mysqli_stmt_execute mysqli_stmt_close
  12. If you use position:relative on the div that holds the image, then you can then use position: absolute on the Price and the status and use the combination of the bottom, left and right styles. Take a look at the CSS positioning tutorial for more information.
  13. Funce

    Tab Menu

    You've lost some code to the automatic forum formatter. Please edit your post to use the code block feature.
  14. Oh! I tried looking at this quite in depth. Prepared an answer, wanted to think on it a bit more, because that should be false. Went and got a coffee. And now: You're using a single = (assignment) instead of the == (loose equality) or even === (strict equality). Do you find that when you run it, it actually turns the cell blue?
  15. Funce

    html links

    The HTML exercises naturally cross into CSS. The specific tutorial for reference is: https://www.w3schools.com/css/css_link.asp
  16. You might do, although you may want to look up terms you're unfamiliar with. If you have any further questions about it, you're always free to ask here.
  17. You should be able to find the CSS appropriate by looking for the keyword "@media print". Looking at the Wikipedia page sources, all of the CSS pages come out of "load.php", so you'll probably want to take a look at the styles from that.
  18. You might be able to emulate the AJAX request in an online IDE. Like Repl.it
  19. Did node say anything after that? Any errors? Did you keep the terminal open? Node runs as a process inside that, so if you close it, no more server.
  20. Can you give any examples of what you'd like to see on the HOW TO page?
  21. HTML5 is 'gone' because w3schools is no longer serving HTML4 examples. Everything in the HTML section should be HTML5. Can you provide some examples on what you have noticed to be different?
  22. You might be able to use localStorage with this. Let me know if you need more assistance.
  23. Funce

    Klick

    You could try making your own style, and curve the edges with border-radius.
  24. Webservers require specific set up, so you'd know if you had one. You'll need a webserver to run PHP code. I recommend XAMPP to test locally as its essentially install and run. Make sure you put your files into its 'htdocs' folder, and you should be good to test. Access via 'localhost'
×
×
  • Create New...