Jump to content

Ingolme

Moderator
  • Content Count

    14,368
  • Joined

  • Last visited

  • Days Won

    95

Everything posted by Ingolme

  1. The carriage return + line feed characters should be 0D0A, 25 is a % symbol.
  2. 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?
  3. 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.
  4. 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.
  5. 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.
  6. There are instructions for installing PHP with PDO here: https://www.php.net/manual/en/pdo.installation.php
  7. Please do not reply to old topics.
  8. 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.
  9. You cannot put HTML inside an SVG.
  10. 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.
  11. If this object is wrapped in an <a> tag, use CSS to set the text-decoration of that link to "none".
  12. 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.
  13. The variable "func" is being used as a function in the body.
  14. Ingolme

    Ian

    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.
  15. If that works, it probably will update any row which has a name.
  16. 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
  17. From that error is looks as if you forgot to put a $ on your variable name on line 12.
  18. You will probably run into a syntax error because the values are not quoted.
  19. 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
  20. What error are you getting and what does your new code look like?
  21. You have to determine why it did not work and then solve that problem.
  22. 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.
  23. 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
  24. 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.
×
×
  • Create New...