Good day, gentlemen. Faced with an incredible problem for me. There is a database on the hosting. Site connection - the database is successful, but it is not added to the database (User Registration). What could be the problem?
Closed due to the fact that the essence of the question is not clear by the participants user194374, aleksandr barakin , Kirill Stoianov , Denis Bubnov , Alex 5 Dec '16 at 17:26 .
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Add to the question the code that makes the connection and insert records. Preferably the table schema. Paste the last mysql error after the lines for creating the connection and running the query. - rjhdby
|
1 answer
The reasons can be a great many, it is desirable to provide the code. But in most cases, the reason is an incorrect SQL query, try the following:
- put the query text in a variable;
- display the value of the variable in the browser;
- copy the request from the browser and paste the request text into the PHPMyAdmin request window on the hosting - if the request succeeds, then the problem is in another place and you need to look at the program code, if not
will pass, then PHPMyAdmin will show you where the error is.
|