You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No data in city table so sign up not working!!
I noticed an issue in your code that if there are no values in the city table inside the ngo database then while sign up the user will not be able to select a location and thereby the form just resubmits and the page reloads erasing the data, and the user doesn't get created.
As a simple fix to this issue, I have modified the ngo.sql to add code for inserting some placeholder location.
Just copy paste this code to your ngo.sql:
-- Added some placeholder values to city table so that the signup page works properly
INSERT INTO city VALUES (2,'Bengaluru');
INSERT INTO city VALUES (3,'Ahmedabad');
The text was updated successfully, but these errors were encountered:
No data in city table so sign up not working!!
I noticed an issue in your code that if there are no values in the city table inside the ngo database then while sign up the user will not be able to select a location and thereby the form just resubmits and the page reloads erasing the data, and the user doesn't get created.
As a simple fix to this issue, I have modified the ngo.sql to add code for inserting some placeholder location.
Just copy paste this code to your ngo.sql:
-- Added some placeholder values to city table so that the signup page works properly
INSERT INTO
city
VALUES (2,'Bengaluru');INSERT INTO
city
VALUES (3,'Ahmedabad');The text was updated successfully, but these errors were encountered: