+ 2

hello i want make math quiz game in php but that don't work i don't know why.

hello i want make math quiz game in php but that don't work i don't know why. help pease https://code.sololearn.com/wa7sb8aQd6Cm/#php

28th Jan 2020, 3:45 PM
Zac-SANE
Zac-SANE - avatar
8 Antworten
+ 2
ok i see, so what kind of exercicses you advise me?
28th Jan 2020, 4:32 PM
Zac-SANE
Zac-SANE - avatar
+ 2
Ok thanks
28th Jan 2020, 4:44 PM
Zac-SANE
Zac-SANE - avatar
+ 1
Are you sure that was the whole code? I got error messages for missing class definition. Where did you get this script BTW?
28th Jan 2020, 3:55 PM
Ipang
+ 1
i have use that math quiz in js https://code.sololearn.com/W9idAO06tOZA/#js and i have tried to convert this js in http://sstur.github.io/js2php/demo/ may be if i separe php and other after i call php by include. but the second problem is that correct to us onclick for function whom are in php?
28th Jan 2020, 4:13 PM
Zac-SANE
Zac-SANE - avatar
+ 1
Alright, I think I understand what you want a bit better now. Can you tell me what are your plans by using PHP? you do know PHP is a back-end language right? I ask this because (it seems to me), you are attempting to manipulate DOM somehow. AFAIK PHP as a back-end wasn't meant for that, that is the role of JS in front end.
28th Jan 2020, 4:25 PM
Ipang
0
You don't anderstand i'm learned Php and i want to transform that math quiz js to php. It's just my smill project. with that i will learn slowly and anderstand combinaisons
28th Jan 2020, 3:51 PM
Zac-SANE
Zac-SANE - avatar
0
Yes i can anderstand the code to 80%. But i haven't yet capacity to code without seeing syntax.
28th Jan 2020, 3:55 PM
Zac-SANE
Zac-SANE - avatar
0
I'm not advising you anything buddy. I came here in a hope that maybe I can help somehow. That's all.
28th Jan 2020, 4:43 PM
Ipang