I want quiz system in my site any reference?

|
favourebrusi 2021-08-24 13:46:43
Kofi 2021-08-24 13:42:45
i think your code is having a problem
on line 20 , why are you using $_SESSION[‘log’], is you have not set session ?
on line 23, $count is an int, why are you using $count[‘id’]

Thanks, first problem solved

Krsh Na 2021-08-24 13:47:15
Any
Ayaka_chan_GI 2021-08-24 14:58:22
Hi everyone… sorry if this is not about php but I’m having problems while creating an app on react using npx create-react-app ( I jst started coding in react BTW) so when installing packages I got some issues like this 😐
Ayaka_chan_GI 2021-08-24 14:59:31
codeslide-42114.jpg

Kofi 2021-08-24 15:01:46
Ayaka_chan_GI 2021-08-24 14:59:31

it is normal to have some vulnerabilities.
node packages are updated frequently and some breaches are discovered.

you can choose to run the npm audit fix or not
you are still fine.

wait till the npm finishes installation of all packages and you are good to go

Ayaka_chan_GI 2021-08-24 15:04:42
Okey ty ^^
Awele11 2021-08-24 15:38:06
Ayaka_chan_GI 2021-08-24 14:59:31

Ohh this is not an issues we see it all the time if audit fix doesn’t work just continue what your doing it won’t affect it

Ayaka_chan_GI 2021-08-24 15:43:28
but the in the app folder I can’t find src and public folder as I supposed to do !
Ayaka_chan_GI 2021-08-24 15:43:47
codeslide-42122.jpg

Ayaka_chan_GI 2021-08-24 15:44:11
I jst have the json files nd node_modules
chanasBohara 2021-08-24 15:44:54
codeslide-42124.jpg

chanasBohara 2021-08-24 15:45:14
Im not getting all radio button value in next page
Kofi 2021-08-24 15:46:12
Ayaka_chan_GI 2021-08-24 15:44:11
I jst have the json files nd node_modules

I think there was an internet connection problem.
Node results in incomplete installation when you get disconnected in the process.
I suggest you start over (per my experience)
delete the project and start again

Awele11 2021-08-24 15:46:54
Ayaka_chan_GI 2021-08-24 15:43:28
but the in the app folder I can’t find src and public folder as I supposed to do !

It suppose to be there the installation did complete ….re-run it

Ayaka_chan_GI 2021-08-24 15:47:50
oh okey I’m gonna do so even tho its not my first time creating it and getting only those files n folder πŸ₯²
Kofi 2021-08-24 15:50:12
chanasBohara 2021-08-24 15:44:54

When you have radio buttons of the sane name value, only the selected button get Posted to the next page.

if you want multiple selection, use checkboxes

chanasBohara 2021-08-24 15:53:09
Yes i want that but its send me only last row value into next page
chanasBohara 2021-08-24 15:54:40
codeslide-42132.jpg

chanasBohara 2021-08-24 15:55:06
Whin i submit its send only last question answer only
chanasBohara 2021-08-24 15:55:28
When*
Kofi 2021-08-24 15:57:28
chanasBohara 2021-08-24 15:54:40

it is because all the input have the same name

Kofi 2021-08-24 15:58:18
you used name=choice
for all the answers

so PHP will post only the last one

chanasBohara 2021-08-24 15:58:47
I have tried different name also but its select multiple
chanasBohara 2021-08-24 16:00:51
Kofi 2021-08-24 15:58:18
you used name=choice
for all the answers

so PHP will post only the last one

What’s the solution??

chanasBohara 2021-08-24 16:02:28
I want quiz system in my site any reference ??
Kofi 2021-08-24 16:03:48
for quiz systems , i would advise some JavaScript control
you can choose any library, the one you are comfortable with.
Kofi 2021-08-24 16:03:59
it makes work easy
chanasBohara 2021-08-24 16:04:40
Ok thank you @LotusTechGhana
Kofi 2021-08-24 16:05:48
but as it is currently
you can still get a solution , but you will code more.

in your code, you can replace name=”choice” by
name = “choice”.$i

chanasBohara 2021-08-24 16:06:29
Ok
Kofi 2021-08-24 16:06:49
that way, your answers names for
question 1 will be choice0 and
answers for question 2 will be choice1
Kofi 2021-08-24 16:07:26
so the next page you do
$_GET[‘choice0’]
$_GET[‘choice1’]
chanasBohara 2021-08-24 16:08:12
Ok thank you ☺️
Kofi 2021-08-24 16:09:37
welcome
chanasBohara 2021-08-24 16:10:30
My pleasure πŸ₯°
|