Notice: Undefined index: quizID

Hi

i’m trying to pull data from my db but I keep getting the following error.

Notice: Undefined index: quizID in /storage/ssd3/766/4489766/public_html/pos.php on line 5
$quizID = $_GET[‘quizID’];

Any ideas

thanks

@ckhawand any idea what could be causing this!

@kf100 A moderator will get back to you soon, we appreciate your patience.

oh, forgot to say that the links are between test.php and pos.php in my public folder

Thanks

Hello @kf100

Make sure you have quizId as a parameter in your URL. Requesting URL should be like following.
example.com/pos.php?quizId=20

Please check that and retry. I’m sorry that I cannot see your files to find the error as I’m online with my mobile. If the error persist let me know. :wink:

1 Like

Hi thanks for replying

I did this and that error went away to be replaced by 3 more

Quiz:
Notice: Undefined index: quizID in /storage/ssd3/766/4489766/public_html/views/outputs.php on line 176
Question:
Notice: Undefined index: text in /storage/ssd3/766/4489766/public_html/views/outputs.php on line 178
choice:
Notice: Undefined index: choiceID in /storage/ssd3/766/4489766/public_html/views/outputs.php on line 180

This is just supposed to display the text. Any ideas?

Thanks

Where do you define those values?