Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. The XML node is named "pubisher" without an L.
  2. The problem is that your files have duplicate extensions, probably because Windows is configured to hide the file extensions. To make it work as you have it currently, you would have to use the filename mario.jpeg.jpeg
  3. STR() does not seem to be a standard MySQL function (I checked the reference here: https://dev.mysql.com/doc/refman/8.0/en/func-op-summary-ref.html ). Which SQL software are you using and what does the STR() function do?
  4. You should go through the effort of learning PHP rather than asking people to write code for you. Most of us have jobs and can't spend the time writing code if we're not getting paid for it, but just to illustrate my previous post, I'll write the code for this example. <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { $data = [ 'tag' => implode(',', $_POST['txt']), 'year' => $_POST['year'], 'month' => $_POST['month'], 'day' => $_POST['day'], 's' => $_POST['s'] ]; $target = 'http://test.com/class/category-photography/?' . http_build_query(
  5. While it's usually not possible to translate Javascript to PHP, in this particular case the same result can be achieved using PHP. You an replace the onclick with a form submission and window.location can be replaced with an HTTP location header.
  6. That doesn't format the array with spaces between each of the internal arrays.
  7. CSS can't really do it reliably, you would need to learn Javascript which is somewhat more complex. There are many examples on W3Schools: https://www.w3schools.com/howto/howto_js_tabs.asp https://www.w3schools.com/howto/howto_js_vertical_tabs.asp https://www.w3schools.com/howto/howto_js_tab_header.asp https://www.w3schools.com/howto/howto_js_accordion.asp
  8. The primary purpose of W3Schools is to teach people how to write code, not just to give snippets that you can copy and paste without trying to understand it. My personal goal on the forums is to teach people, not to do work for them. Since it seems you don't intend to learn and in this scenario the solution to your problem is not too time-consuming I can take the time to write out the necessary code changes for you. While it's not the optimal solution, the easiest way to fix this is to give a unique ID to each dropdown and pass the ID of the element you want to show as an argument to the
  9. You can use the <audio> element to add music to the page. It's very simple: https://www.w3schools.com/html/html5_audio.asp
  10. You need to understand what the code is doing. When you click on a button, it searches for an element with ID "myDropdown". Now you have two of them so it doesn't know which one to choose. If you have been learning the Javascript language through the tutorials, it shouldn't be too difficult to figure out a way to make it work for more than one dropdown. I'll leave that as an exercise to you, give it a try and show me what code you come up with. You already had a topic for this. Please keep it to one topic per question. I will be locking that once since I've answered this one.
  11. You already created a topic for this question. Please continue discussion there.
  12. In the code above, the main issue is that your string is wrapped in single-quotes, so the variable does not get parsed. In PHP, single-quote strings and double-quote strings are different. $timenow = '5'; echo 'SELECT * FROM times where timings > $timenow'; // This prints: SELECT * FROM times where timings > $timenow echo "SELECT * FROM times where timings > $timenow"; // This prints: SELECT * FROM times where timings > 5 The $timenow variable should be wrapped in quotes since it is a string and not a number. I haven't worked with SQLite before, but if possible, you shoul
  13. The join() method will turn an array into a string with whichever delimiters you like. Since you have nested arrays, you'll have to loop through them and construct string from them. There are multiple ways to do it, here's one: let x = [ ['a','b','c'], ['d','e','f'], ['g','h','i'] ]; var out = []; // Temporarily store the internal strings in here. var item, str; // Variables used in the loop for(var i = 0; i < x.length; i++) { item = x[i]; // Access one of the internal arrays str = item.join(""); // Turn the internal array into a string out.push(str); // Add the string to t
  14. From that code, it looks like your regular expression is ^''+61. You probably should remove those quotation marks and escape the backslash. var pattern = "^\\" + data_code;
  15. Ingolme

    Help me please

    This is not a PHP problem, this is a database architecture problem. What is the structure of your money_transfer table? How is the relation between the money_transfer and the users table defined?
  16. I don't see any major drawback aside from how you would achieve that. I'm wondering how you would identify that a user came from a VPN. Even without a VPN, the business owners may not necessarily always be operating from the same IP address. They might have a dynamic IP or they might be working from a different location.
  17. Ingolme

    Help me please

    You don't have to. The money_transfer table should have its own user_id field by which you search for records.
  18. Code inside a function only has access to the function's arguments and variables that were declared inside the function. Did you really need to wrap your code in a function?
  19. Ingolme

    Help me please

    The money_transfer table must have a user_Id field. Does it have a user_id field?
  20. The only reliable solution is to associate likes to an account. Google offers OAuth2 to be able to identify people by their Google accounts.
  21. Unfortunately, the W3Schools staff doesn't visit the forums. The CSS tutorial won't teach you how to make buttons do things, because the purpose of CSS is only to change the appearance of things. If you want to learn how to make things happen when a button is pressed, you should learn Javascript which is considerably more difficult to learn than CSS.
  22. Ingolme

    Help me please

    It is not clear what you are trying to accomplish and I have no idea what your database table structure is. Assuming the money_transfer table has a user_id field, here's how to get all transfers for a user: SELECT * from money_transfer WHERE user_id = 5
  23. Ingolme

    Help me please

    Please keep your question in one topic. There is already a topic here:
  24. There's no variable $username inside the function.
  25. There isn't a regular expression that will count characters if they're not consecutive. You'll have to match the string and then count the number of matches instead. var lowercase = myInput.value.match(/a-z/g); var uppercase = myInput.value.match(/A-Z/g); var digits = myInput.value.match(/0-9/g); var numLowerCase = lowercase ? lowercase.length : 0; var numUpperCase = uppercase ? uppercase.length : 0; var numDigits = digits ? digits.length : 0; if(numLowercase < 199) { // Not enough lowercase letters } if(numUppercase < 199) { // Not enough uppercase letters } if(numDigits <
  • Create New...