I cannot upload files to my script php

http://racemimage.infinityfreeapp.com/

I try to upload the file but this message appears. What is the solution please?

L’importation a réussi, 13 requêtes exécutées. (config.php)

Erreur

Analyse statique :

4 erreurs trouvées lors de l’analyse.

  1. Un nom de variable était attendu. (near “?” at position 1)
  2. Début d’énoncé inattendu. (near “?” at position 1)
  3. Début d’énoncé inattendu. (near “php” at position 2)
  4. Début d’énoncé inattendu. (near “session_start” at position 33)

Requête SQL :

<?php /* Starting session */ session_start() **MySQL a répondu :** [![Documentation](http://185.27.134.10/themes/dot.gif "Documentation")](http://185.27.134.10/url.php?url=https%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.7%2Fen%2Ferror-messages-server.html) `#1064 - Erreur de syntaxe près de '<?php/* Starting session */session_start()' à la ligne 1` What is the solution please?

what languaje are you talk in? XD

Hello there!

  1. Please post entirely in English
  2. please format your code by placing “~~~” before and after it

Thanks!

1 Like

[quote=“yacine74, post:1, topic:55055”]
4 errors found during analysis.

A variable name was expected. (near “?” at position 1)
Unexpected start of statement. (near “?” at position 1)
Unexpected start of statement. (near “php” at position 2)
Unexpected start of statement. (near “session_start” at position 33)

Sorry, I forgot to translate to English

Hi

If I understood correctly
you have PHP code in SQL request which of course is not part of SQL and therefore you have syntax error

Error 1064
means that the parser is unable to understand what is being asked because it does not contains a valid command within the SQL language. in other words:“you have PHP code where only SQL code should be”.

Remove that part that contains the PHP code in the sense that first examine all the code because it is possible that it is not closed adequately somewhere.

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.