Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
02-20-2013, 03:43 PM #1
- Join Date
- Feb 2013
- 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...
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
02-21-2013, 03:39 PM #2
- Join Date
- Jan 2011
- Thanked 702 Times in 700 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.