This forum is now read-only. Please use our new forums! Go to forums
Oops, try again. Make sure to use echo to print out your name and age! (Solved!)
My code keeps passing the console just fine, but CodeCademy throws the aforementioned error. Here’s my code.
<!DOCTYPE html> <html> <head> <link type='text/css' rel='stylesheet' href='style.css'/> <title>PHP FTW!</title> </head> <body> <!-- Write your PHP code below!--> <p><?php $myName = "Umbreo"; $myAge = 16; echo $myName; echo $myAge; ?></p> </body> </html>
Answer 5421d0dd7c82ca5561000294
Solved! I just had to go to a different computer.
Answer 54d1bc3386f5527698001556
ofcourse echo on console is displaying, but its giving error in codecademy. here go my code is //php code for myname and myage.
Answer 5589566d93767696ac000300
I’ve solved it by typing “echo $myName, $myAge;” instead of two separate lines.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
1 comments
so one needs two computers to go through this course? nice!