Jump to content

Funce

Moderator
  • Content Count

    535
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by Funce

  1. Try using z-index for this one. Higher numbers go on top of lower ones.
  2. Give "MySQL Community Server" a try, and you'll be able to choose your OS after that.
  3. 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.
  4. 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.
  5. 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
  6. 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.
  7. Funce

    Tab Menu

    You've lost some code to the automatic forum formatter. Please edit your post to use the code block feature.
  8. 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?
  9. Funce

    html links

    The HTML exercises naturally cross into CSS. The specific tutorial for reference is: https://www.w3schools.com/css/css_link.asp
  10. 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.
  11. 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.
  12. You might be able to emulate the AJAX request in an online IDE. Like Repl.it
  13. 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.
  14. Can you give any examples of what you'd like to see on the HOW TO page?
  15. 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?
  16. You might be able to use localStorage with this. Let me know if you need more assistance.
  17. Funce

    Klick

    You could try making your own style, and curve the edges with border-radius.
  18. 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'
  19. Wondered why the closing tags were red in the tryit.
  20. How are you runnning this file? Do you have a webserver set up?
  21. I believe it's been deliberately verbose to illustrate it. You won't find this level of explicit alias usage elsewhere in other tutorials.
  22. Is the Spreadsheet an example of the SQL layout, or are you trying to update a spreadsheet?
  23. Hey there, if you want to code a backend for your contact form, you might have some luck looking at this: https://www.w3schools.com/php/php_forms.asp This is the function you'd want to use to send an email: https://www.w3schools.com/php/func_mail_mail.asp Onto your second question. Sell t-shirts and take online payments? You'd want a payment processor. I'm personally familiar with Stripe and its really good for getting a checkout nice and quickly. Unless you have less than 10 items, you'd probably want your own Database. This will have all the details of your shirts, including images, categories, etc Good for customers and for your payment processor. Manual upkeep of a page for each product gets tedious fast. Above is the bare minimum. You could look at a couple of other things afterwards (like logins, and accounts) but sticking with the above will get you up the fastest.
  24. Good suggestion! That would make some of the templates interesting to read. But they're still meant to be templates on their own. In terms of the navbar, it can be summed up like this. stick-to-top { top: 0; position: fixed; } No Javascript required.
×
×
  • Create New...