Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need help installing this marketplace script

    Hi I'm a real beginner at PHP, and we were asked to create our own classified ads website, just a simple marketplace website. So I was looking for code references on how to do the category management, how to display the listings, user control panels and such I found a simple marketplace script here but I seem to be having trouble installing it...

    Download:
    http://www.phpmarketplace.com/downlo...arketplace.zip

    And this is how the marketplace website should look like: http://www.phpmarketplace.com/demo/

    So I followed all the steps, I imported their database and made the corrections to the config.php but I keep getting these errors.. if you could get it to work please do tell, it will be much appreciated. Or if you could tell me some other good code references for marketplaces (I found some others like WeBid, webauction, osclass but it's all still too complex for me)

    Notice: Undefined variable: q in C:\xampp\htdocs\phpmarketplace\index.php on line 11

    Notice: Undefined variable: q in C:\xampp\htdocs\phpmarketplace\index.php on line 13

    Warning: mysql_close(): no MySQL-Link resource supplied in C:\xampp\htdocs\phpmarketplace\index.php on line 40

    Notice: Undefined variable: record in C:\xampp\htdocs\phpmarketplace\pages\home.php on line 64

    Notice: Trying to get property of non-object in C:\xampp\htdocs\phpmarketplace\pages\home.php on line 64

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,167
    Thanks
    23
    Thanked 601 Times in 600 Posts
    index.php has include ("config.php"); as the first line. config.php has $q = $_GET['q']; as line 15. Meaning you supply q when you run the index.php script.

    Your no MySQL-Link comes from database opened in config.php. Guess you didn't open it.

    Your last two looks like it wants a price from a table forsale_content.

    My guess you are running these files without setting up the needed database and tables.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •