Giter VIP home page Giter VIP logo

Comments (6)

siamon123 avatar siamon123 commented on July 21, 2024

Hey

Try this

 'SITE_ROOT',DS.'..'.DS.'uploads/users';

if it's doesn't solve your problem then replace it with this

 public $userPath = 'uploads/users';
 public $productPath = 'uploads/products';

Thank you.

from warehouse-inventory-system.

ryanvanks avatar ryanvanks commented on July 21, 2024

Hello Siamon123
Thanks for the quick reply but it did not help.

When I use this code:
public $userPath ='SITE_ROOT',DS.'..'.DS.'uploads/users';
public $productPath = 'SITE_ROOT',DS.'..'.DS.'uploads/products';

I do not get the login page but I get this error:

Parse error: syntax error, unexpected 'DS' (T_STRING), expecting variable (T_VARIABLE) in C:\wamp\www\inventorysystem\includes\upload.php on line 10


When I use this code:

public $userPath = 'uploads/users';
public $productPath = 'uploads/products';

I get to the login page. I'm then redirected to the page http://localhost/inventorysystem/home.php

Error on this Query :

SHOW TABLES FROM inventoryproj-db LIKE "users"

"inventoryproj-db" being the name I gave the database on my system.

Thanks

from warehouse-inventory-system.

siamon123 avatar siamon123 commented on July 21, 2024

NO problem,

just logout and login back.

from warehouse-inventory-system.

ryanvanks avatar ryanvanks commented on July 21, 2024

still does not work.
I used http://localhost/inventorysystem/index.php to logout.
When I log back in I'm then redirected to the page http://localhost/inventorysystem/home.php

Error on this Query :

SHOW TABLES FROM inventoryproj-db LIKE "users"

from warehouse-inventory-system.

siamon123 avatar siamon123 commented on July 21, 2024

index.php doesn't has logout function, it's should be

 http://localhost/inventorysystem/logout.php

And you getting that error from this function, either DB_NAME or table not exit.you can find this function in sql.php

tableExists($table)

from warehouse-inventory-system.

ryanvanks avatar ryanvanks commented on July 21, 2024

Hello Siamon,

The problem was the database name. I changed it from "inventoryproj-db" to "inventoryprojdb" and everything works fine now.
Thanks for the tips.
Ryan

from warehouse-inventory-system.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.