Issue on redirect of Edit and Delete pages in PHP

Asked

Viewed 32 times

0

All right, guys, I’ve got a weird problem, I’ve developed a simple scheduling system.

git repository: https://github.com/guischpor/sistemacadastrophp

I deployed the project on my hosting site at Hostinger: http://syscadastro.guiportela.tech/index.php

The project runs and works normally on the local server, it adds a new record, deletes and changes any value and performs the query.

On the Hostinger server where I left the site, it performs the query and add new records, the problem and when I click the change and delete button, it from the error. I’ve tried everything I can, I’d like some help.

The db handling files are in the bank folder, the repository link is above.

If anyone has any ideas and help me, I’d appreciate it.

1 answer

1


You have more than one problem from what I saw, but the ones you mentioned occur due to the generated link. Your system is generating the edit link like this:

http://syscadastro.guiportela.tech/editar.php%20? %20id=2

And it should be:

http://syscadastro.guiportela.tech/editar.php?id=2

If you replace %20? %20 with ? it works. However, it did not save or exclude. But the original error is because of the same link. One tip is to enable PHP error messages in development mode. More information here: How to identify the error in PHP code by Chrome? Good luck!

  • Thanks for the help, is what I was thinking, I’ll take a look at the content you sent me, any questions I return, responding whether I managed or not.

  • 1

    I started and visualized more carefully in the code. There were some spaces that I had left for better viewing in my code, I deleted those spaces in the read.php . .

  • 1

    Tamos ai, @Guischolzportela

Browser other questions tagged

You are not signed in. Login or sign up in order to post.