Im doing a code where users enter details and it will be sent to database. At the same time, a new table is created within the database with the event name for registration purposes. But the SQL seems to be not functioning. Any tips?
Asked
Active
Viewed 16 times
-1
-
are you getting any output or errors? – golangphp May 28 '22 at 05:41
-
It says event not inserted into database – Keith Wong May 28 '22 at 05:42
-
As per [ask] please do not upload images of your code. Provide a [mre] of your issue including code, relevant data, and any error messages / debugging output in the body of your question. You can [edit] it when you're ready. Make sure you have thoroughly debugged the code and also enabled all php and myswlo error messages before posting (you can google how to enable those two things). See the [help/on-topic] for more info. Thanks – ADyson May 28 '22 at 09:39
-
P.s. your sql code is highly vulnerable to security issues and also just silly syntax errors. Please correct this by using prepared statements and parameters to build the sql - again you can easily Google this topic if no-one has taught you properly – ADyson May 28 '22 at 09:41