Jump to content


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Ingolme

  1. I wonder if it is even possible. This is not the kind of task that PHP was designed for. It may need to be installed along with a specific extension or it might need to run a compiled executable. Something I would have to do more research on when I have a bit more time. Meanwhile, is your task something that can be done using PHP's GD library?
  2. The update() function will run when the page loads (it is being passed as an argument to the ready() function) , but it won't find the elements because they don't have id attributes.
  3. There is no specific name for that, but you can do it in Javascript with a combination of string manipulation functions and timing functions. In the programming world, most things are not done right out of the box and you often have to solve completely new problems on your own. This is why it is important to learn all the basics of programming which gives you the puzzle pieces you can fit together in different ways to solve any problem. This is not too difficult of a task to achieve once you are familiar with Javascript and the DOM.
  4. PDO is a native PHP class, so libraries and frameworks are not going to try to build their own version of it. You need to make sure that PDO is installed along with PHP, if you cannot do that then you cannot use this library.
  5. There are instructions for installing PHP with PDO here: https://www.php.net/manual/en/pdo.installation.php
  6. Please do not reply to old topics.
  7. The <use> tag just includes the content exactly as it is in the <defs> element. You cannot put attributes on the <use> tag and expect them to be applied to the included elements.
  8. You cannot put HTML inside an SVG.
  9. The code might display some warnings due to undefined indices and the email won't contain the correct content, but I don't see anything that would prevent it from sending an email. Make sure that the string in the $_POST[] array matches the name attribute of the <input> or <textarea> element.
  10. If this object is wrapped in an <a> tag, use CSS to set the text-decoration of that link to "none".
  11. To make an icon a link, wrap it in an <a> tag. If you want something to happen when submit is clicked, you will need to write PHP software to handle the form data.
  12. The variable "func" is being used as a function in the body.
  13. Ingolme


    Contenteditable won't save the edits you make to the page. The changes are only visible on the computer of the person who is editing the page and disappear as soon as the tab is closed. If you want to make a page editable, your best option is to install a CMS like Wordpress or similar. There is no way to do this with just HTML or even Javascript.
  14. If that works, it probably will update any row which has a name.
  15. Your update query does not have a WHERE clause, so it updates every single row in the table. Use a WHERE clause to restrict the update to a particular row. See examples in the MySQL tutorial: https://www.w3schools.com/sql/sql_update.asp
  16. From that error is looks as if you forgot to put a $ on your variable name on line 12.
  17. You will probably run into a syntax error because the values are not quoted.
  18. That's not the correct syntax for an UPDATE query. The correct syntax is: (https://www.w3schools.com/php/php_mysql_update.asp) UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value
  19. What error are you getting and what does your new code look like?
  20. You have to determine why it did not work and then solve that problem.
  21. That code looks valid, but it is different than the code you posted in this topic. It is an INSERT query, so it will only ever create new records and not change existing ones.
  22. Look carefully for differences between your SQL and the SQL Syntax shown in this tutorial page: https://www.w3schools.com/php/php_mysql_insert.asp
  23. It's best you go through the MySQL section of the PHP tutorial and learn how to do it. You won't learn if you don't go through the effort and next time you run into a problem you'll just be asking other people to write the code for you again.
  24. You're mixing object-oriented mysqli with procedural mysql and your INSERT query is missing the VALUES section.
  • Create New...