Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Script to copy data from 2.2 to 2.3.4 database


JcMagpie

Recommended Posts

Sorry I know this has been coverd before but thread is now closed and I am having problems.

This is the original post, I used it without any problem back in 2016! however when I use it now I get this error shown at end.

Not what has changed I am doing it exactly as before. Can anyone help

 

Error

There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem

ERROR: Unknown Punctuation String @ 1
STR: <?
SQL: <?php
    error_reporting(E_ALL);

 

SQL query:

<?php error_reporting(E_ALL);

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php
    error_reporting(E_ALL)' at line 1

 

 

Link to comment
Share on other sites

"<?php" and error_reporting() are PHP items. Why are you feeding PHP code to an SQL processor such as phpMyAdmin "import"? Are you using PHP code to read in SQL statements and send them on to MySQL? If so, something got messed up in the PHP, although it's a puzzle why SQL would be handling it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...