Jump to content

Funce

Members
  • Content Count

    145
  • Joined

  • Last visited

  • Days Won

    4

Funce last won the day on February 4

Funce had the most liked content!

Community Reputation

11 Good

1 Follower

About Funce

  • Rank
    Member
  • Birthday April 24

Profile Information

  • Location
    New Zealand

Previous Fields

  • Languages
    HTML, CSS, JavaScript, PHP, SQL, BYOND

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Funce

    variables into pdo query without binding

    Without a binding? You might be able to use a prepared query like this. <?php $stmt = $dbh->prepare("SELECT * FROM REGISTRY WHERE name = ? AND id = ?"); if ($stmt->execute(array($name, $id))) { //Stuff } ?> If you want to see the other ways (mostly binding) you can check it out on the doc page: http://php.net/manual/en/pdo.prepared-statements.php Although I'm perplexed as to why it is imperative to not use a binding.
  2. Funce

    CSS Web Fonts, Exercise 1 & 2

    Which question gives you this error? What was your answer?
  3. From what I've observed, keys insert their characters on `keydown`. Preventing propagation on `keyup` wouldn't do anything as all the events already propagated on a different one.
  4. Funce

    Need more JavaScript Framework

    There's a couple of small pages on React and Vue, probably good enough to get a starting point. They're not full tutorials, but I imagine they're good for those that want to get into it. https://www.w3schools.com/whatis/whatis_react.asp https://www.w3schools.com/whatis/whatis_vue.asp
  5. Funce

    Need more JavaScript Framework

    Are there any specific ones you personally want to see added to the website?
  6. Expanding on what dsonesuk has said, a more fitting representation of this list is [ 0: 'BMW', 1: 'MAHINDRA', 2: 'HERO', 3: 'KTM' ] It is technically ordered, just not by what you think.
  7. Funce

    UNIX CronTab Specification

    Hi Roddy, Here's what I can piece together from the help file. (If I'm not mistaken, it may be the one you are referring to) https://matomo.org/docs/setup-auto-archiving/ `core:archive` is the command being run, much like 'mkdir' or 'cat' in other command lines. I am unsure of whether the command is in two parts and parsed together (archive command of core module) or otherwise. At the bottom of the page, you can see the help output of the command.
  8. Funce

    PHP Structural Conflagration

    As far as I'm aware, Date objects require complete dates to be created. (Needs a Year and a Day in addition to the month so the whole object works) You'll want to put some placeholder year and day values in the format YYYY-MM-DD. Something like this would work to create your Date object. $dateObj = new DateTime('2000-' . $monthNum . '-01'); However if you wanted something more concise, just the month number, you could use this. $monthName = date('F', strtotime('2000-' . $monthNum . '-01'));
  9. Funce

    SELECT tab from information.schema to php

    Apologies for the interjection, this isn't exactly correct, both procedural and OO Style use objects as parameters and returns. (mysqli_stmt_init returns a mysqli_stmt object) But the advice is still valid, try not to mix them.
  10. Funce

    Layout of a Product page

    So, uh, are you having any particular issues in completing this?
  11. Apologies vmars, I may have replied to an earlier thread you made..
  12. Funce

    Code alignment in notepad++

    You can use the XML tools plugin for Notepad++ Details: https://stackoverflow.com/questions/28199308/how-to-indent-html-tags-in-notepad/37617122
  13. Hi there! Just a few issues things to fix up and you're good to go! You've got a bunch of HTML comments inside your CSS and your JS, you'll need to change them to proper styles. CSS uses /* code */ for commenting JS uses /* code */ for multiline comments and // code for single line comnments. Your added elements on your page never have the styling classes added to them. Have a look here for more of the technical details: https://www.w3schools.com/howto/howto_js_add_class.asp An example for CreateArticleHeader function createArticleHeader(text = "Article Heading") { var p_ah = document.createElement("p"); // alert{"p_ah"}; p_ah.innerHTML = text; p_ah.setAttribute("contenteditable", "true"); // Add class for styling p_ah.classList.add("p_ah"); var content = document.getElementById("content"); content.appendChild(p_ah); } In terms of compatibility, as long as you add only one class per use of classList.add, you'll be able to support IE. https://developer.mozilla.org/en-US/docs/Web/API/Element/classList Now because of the way this works, you'll need to change your styling to use .p_ah instead of #p_ah and change the original Article Heading attributes from id="p_ah" to class="p_ah" And the same for p_tgh and the original Text Paragraph <p contenteditable class="p_ah">Article Heading</p> .p_ah { font-size: 18px; font-style: bold; }
  14. Funce

    Embedded video file not working.

    Hi Russel, My experience with apache is that localhost normally serves from /htdocs/, so your webpage is possibly making you look for "C:/Apache24/Apache24/htdocs/The_book_of_Revelation_14a.mp4" instead of where it actually is. Also is this website hosted on an external server? Or otherwise accessible by multiple devices? There are three sorts of links that are common with most websites Absolute Links. (http://localhost/The_book_of_Revelation_14a.mp4) I consider these only useful for external resources on another domain. These look at the exact address specified for resources and pages. Relative Links. (./The_book_of_Revelation_14a.webm OR The_book_of_Revelation_14a.webm) I don't use these normally, because I end up having to move files around a lot. But they're quite nice for linking to other pages that you know are always going to be bundled together. They look for the file relative to the current page that is opened. Relative to Root Links (/The_book_of_Revelation_14a.mp4) I find these links to be excellent, as they nicely translate from my testing environment to the production one without changes. These ones look at the current domain base to find the file. May I recommend trying a relative to root link. (Note the / only) <source src="/The_book_of_Revelation_14a.webm´╗┐" type="video/webm">
  15. Funce

    Trouble with alert placement ?

    Heck sorry about that, that was my advice. Just checked MDN, its a feature of ES2015. Only Internet Explorer doesn't seem to be supported by it. (Had no idea it was 'new') https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters
×