Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2013, 03:43 PM   PM User | #1
repzaj1234
New to the CF scene

 
Join Date: Feb 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
repzaj1234 is an unknown quantity at this point
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
repzaj1234 is offline   Reply With Quote
Old 02-21-2013, 03:39 PM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,387
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
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.
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:51 AM.


Advertisement
Log in to turn off these ads.