My code dont get the information in mysql database using post app inventor help

Please upload here a copy of your formatted php file. You possibly have an issue @ line 20.
(to upload add a .txt after filename.php)

You also have an issue with your mysql table:

image

nombre and email should be "varchar" and not "int" because they are strings. telefono may also need to be a "varchar" if numbers start with 0 or contain "+" signs.

It is not necessary to replace spaces with a postText, this should be automatically uriEncoded.

1 Like

Ah, now removing the double quotes it seems to work, I get the correct response from the php file when sending three integers....

image

Yes, the problems was this....

But solve this like @TIMAI2 indicates...

so what is my error?. use the post text in process block?. no need to complete the empty spaces with %20?. i am a little confuse because i am following the steps from the link kio4

See the example of @TIMAI2 ...he don't use the replace block. You don't need it.

Read the last 5/6 posts in this topic. Fix these errors.

ok thanks but my head dont understand the error of the link kio4 about why the other is wrong could you can explain me. i know the solution but i like learn my errors to try to fix.

  • blindly copy/pasting code created by others without understanding what it does. Not only did you not copy it correctly, you then modified it which broke it
  • not understanding how to setup a table correctly in mysql
  • you have had several chances in several topics to get an understanding of how to use php/mysql, but you do not appear to have learned from it
  • learn to debug your appinventor apps
  • start small, with simple projects tests, then build from there, testing each step

Do the tutorials and read the documentation:

https://appinventor.mit.edu/explore/library

https://appinventor.mit.edu/explore/ai2/tutorials