Jump to content

gw1500se

Members
  • Posts

    1,029
  • Joined

  • Last visited

  • Days Won

    16

Everything posted by gw1500se

  1. You have to output a fully formed HTML page from your script. Meaning all the required tags for any HTML page (<HTML>, <HEAD>, <BODY>, etc.).
  2. So what is your question or error message?
  3. First of all you have way too many unnecessary <?PHP and ?>. You have retrieved your data from the database but never use that result anywhere. All you need to do is create a string formatted with the data so it says what you want and put it in the body. Am I missing something? P.S. Don't use '*' in your select query. Specify only those columns you will actually use.
  4. Looks like you already did that. Perhaps you need to better explain what you are trying to do and post some actual code. Also, when you post code use the code icon (<>) in the top menu and specify PHP.
  5. Kindly post some code. Be sure to use the code icon (<>) in the top menu and specify PHP.
  6. As you can see $_POST does not contain what you expect. Now you have to figure out why.
  7. Looks like $_POST does not contain what you think. Before the 'if' block use this: echo "<pre>"; print_r($_POST); echo "</pre>";
  8. What have your tried? Post the code here (use the code icon(<>) in the top menu and specify PHP. If you don't know where to start read this.
  9. That is a different question from what you originally asked about downloading a file. Whether or not your microcontroller is hacakble is independent of downloading an update. Assuming, of course, that you can trust the download site. Whether or not is can be hacked depends on how well you secure the microcontroller in general. Since you mentioned Python, is it running Raspbian?
  10. What kind of attacks? Based on what you posted I am guessing you mean man-in-the-middle attacks. Once it is on either machine it is a different security issue.
  11. You need to post your code here not make people go to a 3rd part web site. Also if you suspect the problem is in Javascript then post in the Javascript forum. When you do post use the code icon (<>) in the top menu for your code and select the appropriate code type.
  12. Depends on what format you want but for mm/dd/yyyy use: <?php echo "<td colspan=\"2\"><input type=\"date\" name=\"date_encode\" style=\"width:100%\" value=\"".date("m/d/Y")."\" /></td>"; ?>
  13. Headers must be first. There must be some text or white space being output before the headers. Make sure there is not even a blank line before the <?PHP tag. Check the HTML source to see it then find where it is coming from.
  14. First please use the code icon (<>) for your code and specify PHP. The formatter makes your code easier to read. Second, you forgot to give us the error message and on which line it is occurring.
  15. What is the error? Do you have errors turned on? error_reporting(E_ALL);
  16. Did you remove the HTML from 'include.php'? Again the pure HTML should be using the HTML <include> tag.
  17. Are you looking to fix code (post it here using code icon and specify PHP and any errors)) or resolve a git problem for which this is the wrong forum?
  18. Generally the structure of a PHP include is not a complete HTML file. Rather it is PHP code. Also when you include PHP it should be inside <body> tags. Finally, it appears to me you should be using HTML <include> tags not PHP require.
  19. Did you echo $_POST["modSelected"]) to make sure it is set and not just dropping past the 'if' block?
  20. First, please use the code icon (<>) in the top menu and specify PHP. I'm not sure I understand what you are asking but if you leave the empty column name off of your insert, it will not be set unless your schema made it a required field.
  21. First please use the code icon (<>) at the top of the menu for your code and specify PHP. <?php $tele=get_the_author_meta('telefoon', $curauthID); attrib="" if (empty($tele)){ $attrib="hidden" } echo "<p $attrib><strong>telefoon:</strong>$tele</p>"; ?> Untested.
  22. First, please use the code icon (<>) in the menu and specify PHP for your code. You don't say what error your are getting but that syntax is probably wrong. You don't show how $class is defined but as a guess given almost no information from you I'd say you want this: <?php echo ($class->variacion); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.