Jump to content

learn-php

New Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About learn-php

  • Rank
    Newbie
  1. Hi, Thanks for your response. I tried changing code as you mentioned also tried to echo input arguments. It still enters condition, but did not update MySQL db as values were null. Modified code, 8 $api_key_value ="XXXXXXXXX"; 9 $api_key =""; 10 $status = ""; 11 $id =""; 12 13 if ($_SERVER["REQUEST_METHOD"] == "POST") { 14 echo "value of api_key=" . $api_key . "\n"; 15 echo "value of id=" . $id . "\n"; 16 echo "value of status=" . $status . "\n"; 17 if (isset($api_key) and isset($id) and isset($status)) { 18 $api_key = test_input($_POST["api_key"]); 19
  2. Hello there, I am coding Arduino micro controller, and intended to GET the data from server MySQL db through php to turn ON/OFF LED. I could able to GET the data from manually updated MySQL db value, even I could able to successfully change the data of MySQL db from micro controller POST method. But I am getting error when trying to change the MySQL db value from browser using online POST tool, Following is PHP code at server 8 $api_key_value ="XXXXXXXXX";//Sample 9 $api_key =""; 10 $status = ""; 11 $id =""; 12 13 if ($_SERVER["REQUEST_METHOD"] == "POST") { 14
×
×
  • 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.