kirilkirkov / Ecommerce-CodeIgniter-Bootstrap

Responsive, Multi-Vendor, MultiLanguage Online Store Platform (shopping cart solution)
MIT License
1.3k stars 949 forks source link

problem with sql database #244

Closed Dodi-3009 closed 1 year ago

Dodi-3009 commented 1 year ago

Hi, I'm pretty new to this so I might have done something wrong. I'm trying to use this script on altervista and I managed to load it, but once loaded I go to phpmyadmin to import the database and once imported it gives me this error:

Mistake Static analysis:

6 errors were found during parsing.

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 "defined" at position 6) Unexpected start of statement. (near "'BASEPATH'" at position 14) Unrecognized statement type. (near "OR" at position 26) SQL Query: Copy

<?php defined('BASEPATH') OR exit('No direct script access allowed');

MySQL Message: 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

defined('BASEPATH') OR exit('No direct script access allowed')' at line 1

Hope you can help me. Davide

kirilkirkov commented 1 year ago

@Dodi-3009 Can you give me more information:

juboy941 commented 1 year ago

There is a problem with the code affter setting up the database

kirilkirkov commented 1 year ago

@juboy941 I have made a multiple tests and i can not catch the problem. Import database.sql file to your database and then enter your mysql settings - database, username and password in application/config/database.php file. Are you sure that you use MYSQL as database? Attach screenshot of the error

Dodi-3009 commented 1 year ago

I'm really sorry, I was wrong to do some processes and now I've succeeded, thanks a lot for your availability