0

help to the find error ...urgent please (newbie)

<? php include 'database.php'; ?> what is the error in this as it says Parse error: syntax error, unexpected 'include' (T_INCLUDE) in /Applications/XAMPP/xamppfiles/htdocs/HiraganaApp/index.php on line 1 what exactly it means Parse error: syntax error, unexpected 'include' (T_INCLUDE)

10th Apr 2017, 12:19 AM
Dani
5 Answers
+ 3
I'm not able to help you, but i wanna ask, what were you planning to do with this hiragana app? (newbie japanese learner)
10th Apr 2017, 12:13 AM
Welliton Malta
Welliton Malta - avatar
+ 3
isn't the correct syntax like this? include("database.php");
10th Apr 2017, 12:25 AM
Welliton Malta
Welliton Malta - avatar
+ 2
Well, here is some error and performance issue. At first there is an space between ? and PHP in tag. and also when using file not view use require or require_once or include_once. It will be like <?php include_once "database.php"; ?>
10th Apr 2017, 1:36 AM
Aditya kumar pandey
Aditya kumar pandey - avatar
0
well i'm trying to create a single page app where people can learn japanese hiragana langauge, for an assignment
10th Apr 2017, 12:16 AM
Dani
0
Still shows the same error..
10th Apr 2017, 1:36 PM
Dani