+ 1

Why won't this code work?

I learnt in sololearn that you can include php in html like I did. But it won't work. https://code.sololearn.com/W9iKVM7OLxkV/?ref=app

14th Jul 2018, 11:50 PM
Emeruche Ikenna Cole
Emeruche Ikenna Cole - avatar
3 Respuestas
+ 2
that document can not be .html must be .php plus lines 7 and 9 are left over.
15th Jul 2018, 1:01 AM
S.Jaime
S.Jaime - avatar
0
You used HTML code editor to include PHP file. And that also in a wrong way. Use PHP editor, and you can't include a PHP file here without uploading it to any server and give it's path here. To include a file, use this syntax- <?php include "file path with name"; ?>
15th Jul 2018, 2:55 AM
Sachin Artani
Sachin Artani - avatar
0
S.Jaime what do you mean by left over?
15th Jul 2018, 7:47 AM
Emeruche Ikenna Cole
Emeruche Ikenna Cole - avatar