# How should I write code?

**URL:** <https://www.phphelp.com/t/how-should-i-write-code/32849>\
**Category:** General PHP Help\
**Created:** [November 26, 2020, 5:19pm UTC](https://www.phphelp.com/t/how-should-i-write-code/32849 "2020-11-26T17:19:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cond525](https://www.phphelp.com/letter_avatar_proxy/v4/letter/c/e19adc/32.png) [@cond525](https://www.phphelp.com/u/cond525)\
**Post date:** [November 26, 2020, 5:19pm UTC](https://www.phphelp.com/t/how-should-i-write-code/32849/1 "2020-11-26T17:19:46Z")

</div>

When the message is sent once after that, the message can be sent for 1 hour.

 ![image](https://www.phphelp.com/uploads/default/original/2X/f/f6bb7b3e50de9391c2a9caa5613616476ebd5b3f.png)

---

<div class="post-metadata">

**Author:** ![Strider64](https://www.phphelp.com/user_avatar/www.phphelp.com/strider64/32/3161_2.png) [@Strider64](https://www.phphelp.com/u/Strider64)\
**Post date:** [November 27, 2020, 12:50am UTC](https://www.phphelp.com/t/how-should-i-write-code/32849/2 "2020-11-27T00:50:26Z")

</div>

Welcome Aboard!

Please put your code between \</\> brackets as it will make it easier for people to help you.

---

<div class="post-metadata">

**Author:** ![whispers](https://www.phphelp.com/letter_avatar_proxy/v4/letter/w/858c86/32.png) [@whispers](https://www.phphelp.com/u/whispers)\
**Post date:** [November 27, 2020, 4:34am UTC](https://www.phphelp.com/t/how-should-i-write-code/32849/3 "2020-11-27T04:34:13Z")

</div>

Not sure what is you are asking? (what you want to do?)

But I like that your project is using an esp8266 module!

Is the ESP itself also hosting the table? (not clear on how you are ‘querying’ the ESP8266 module?

I have used it to host webpages… and GUI/interface for connected projects… and even used SPIFFS before to upload/access assets (like images)… but never installed MySQL? or ran PHP on it/from it?

Can you expand more on that aspect on your project? (if in fact thats how its working/set-up?)

Of is this is just a normal LAMP/WAMP set-up and a normal MySQL table (and the table name is called esp8266) ??

Update:

Looks like this is just a normal DB/table set-up… and you are querying the ‘logged’ data from your ESP module…

Have you ever looked in MQTT? You can also use PHP with it.
