Why won't my arduino code upload data to database>?

I have posted many project on this topic.. might be worth searching for the files.

https://forum.arduino.cc/index.php?topic=452765.msg3134238#msg3134238

(and many others)

  • And you should use the IP of the machine that has the XAMP install...

Does your PHP script dump/insert the to database correctly? (without the Arduino portion)

I would also suggest you use PDO instead of MYSQLI... or at the very least scrub/sanitize your data!

  • as it stands now.. this is wide open to a SQL injection attack. :slight_smile: