Current location: Hot Scripts Forums » Programming Languages » PHP » Problem with Auto Dealer Script


Problem with Auto Dealer Script

Reply
  #1 (permalink)  
Old 11-29-04, 12:23 PM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
Problem with Auto Dealer Script

I got the free php script from here, it linked me to http://car-dealer-website.org/
where i downloaded the script.. I installed it fine, but when messing around with the "demo" i guess you could call it, If I go into "models" then choose Edit or Details, I get the following Error:

SELECT * FROM `` WHERE ``=''Incorrect table name ''

This is a pretty small script, so if someone could d/l it, and show me what im doing wrong, I'd appreciate it! my script is located at www.prayershares.com/briens/admin/index.php login: admin/test

You can see the error yourself, maybe help me out too!! Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-29-04, 03:02 PM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
nice

well i see someone decided to change my admin password... very lame... Anyways the login is now hotscript and pass is "hotscript"


Someone help me figure it out!!! PLEASE!?!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 11-29-04, 04:40 PM
<?Wille?> <?Wille?> is offline
Junior Code Guru
 
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
it would be alot easyer to figure it out if you showd us the script behind the page that gives the error
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 11-29-04, 05:15 PM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
from/to page

This is the page im trying to come from...
http://www.prayershares.com/briens/a...x.php?sub=auto

when i click "details" on any vehicle, it sends me to this page:
http://www.prayershares.com/briens/a...tails&car_id=9


and gives me this error :
SELECT * FROM `` WHERE ``=''Incorrect table name ''


Im kinda new to PHP, so any and All help is greatly appreciated!!

Thanks,
keith
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to nuzzle For This Useful Post:
mysamsung (04-17-10)
  #5 (permalink)  
Old 11-29-04, 05:25 PM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
This is the code from the "details.xml" file

<form>
<title>Vehicle Details</title>
<action>index.php?sub=auto&action=store</action>
<name>edit</name>
<encoding>multipart/form-data</encoding>
<width>540</width>

<formtag>true</formtag>
<border>true</border>

<buttons>
<set>
<footer>true</footer>
<header>true</header>
</set>

<return onclick="" button="return" >
<location>index.php?sub=auto</location>
</return>

<save onclick="" button="edit">
<location>index.php?sub=auto&action=edit&car_id={C AR_ID}</location>
</save>

</buttons>

<redirect>index.php?sub=auto&action=details&car_id ={CAR_ID}</redirect>

<fields>

<car_id type="hidden"/>

<car_make type="relation">
<title>Make</title>
<relation table="make" id="make_id" text="make_name" condition="make_parent=0" order="make_name" order_mode="ASC"/>
</car_make>

<car_model type="relation">
<title>Model</title>
<relation table="make" id="make_id" text="make_name" condition="make_parent!=0" order="make_name" order_mode="ASC"/>
</car_model>

<car_description type="text">
<title>Description</title>
</car_description>

<car_tn_image type="image" editable="false" adminwidth="100" adminheight="100" path="../upload/" absolute="false" >
<file default="car_" field="car_id" ext=".jpg" />
<title>Tn Image</title>
<error>No image currently available.</error>
</car_tn_image>

<car_image type="image" editable="false" adminwidth="100" adminheight="100" path="../upload/" absolute="false" >
<file default="bcar_" field="car_id" ext=".jpg" />
<title>Image</title>
<error>No image currently available.</error>
</car_image>

<subtitle type="subtitle" title="Car Details" />

<car_year type="text">
<title>Year</title>
</car_year>

<car_price type="text" action="price" preffix="$">
<title>Price</title>
</car_price>

<car_mileage type="text">
<title>Mileage</title>
</car_mileage>

<car_track type="text">
<title>Tracking Number</title>
</car_track>


<subtitle2 type="subtitle" title="Private Fields ( apears in admin only )" />


<car_vin type="text">
<title>VIN</title>
</car_vin>

<car_dealer_price type="text" action="price" preffix="$">
<title>Dealer Price</title>
</car_dealer_price>

<car_sold_price type="text" action="price" preffix="$">
<title>Sold Price</title>
</car_sold_price>

<car_sold_to type="text">
<title>Sold To</title>
</car_sold_to>

<car_dealer_notes type="text">
<title>Dealer Notes</title>
</car_dealer_notes>

</fields>
</form>

This is the code from the "details.xml" file
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to nuzzle For This Useful Post:
mysamsung (04-17-10)
  #6 (permalink)  
Old 11-30-04, 03:17 AM
<?Wille?> <?Wille?> is offline
Junior Code Guru
 
Join Date: Jan 2004
Location: Helsinki, Finland
Posts: 666
Thanks: 0
Thanked 0 Times in 0 Posts
yea.. i want to se the code for details.php.. and please put it inside [ php] [ /php] tags (without space)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 11-30-04, 10:10 AM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
code for details.php

here is the code for 'details.php'

PHP Code:

<?php


require "config.php";

$_PAGE "index";
$_GET["sub"] = "details";

$site = new CSite("admin/site.xml");
$site->Run();
?>
Here is something else, im not sure if you want to see or not, but when the database was setup the install help said to run this sql file against the database... so here is the sql file it ran and said "successfull" >>
PHP Code:

<?php


require "config.php";

$_PAGE "index";
$_GET["sub"] = "details";

$site = new CSite("admin/site.xml");
$site->Run();
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to nuzzle For This Useful Post:
mysamsung (04-17-10)
  #8 (permalink)  
Old 11-30-04, 10:11 AM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
**** the sql file didnt show right... here is the SQL File I hadda run... sorry : : :

PHP Code:

-- phpMyAdmin SQL Dump

-- version 2.6.0-pl2
-- [url]http://www.phpmyadmin.net[/url]
-- 
-- 
Generation TimeOct 312004 at 11:05 PM
-- Server version4.0.18
-- PHP Version4.3.8
-- 
-- 
Database: `mvander_car`
-- 

-- --------------------------------------------------------

-- 
-- 
Table structure for table `site_cars`
-- 

CREATE TABLE `site_cars` (
  `
car_idint(11NOT NULL auto_increment,
  `
car_modelint(11NOT NULL default '0',
  `
car_makeint(11NOT NULL default '0',
  `
car_yearint(4NOT NULL default '0',
  `
car_pricevarchar(100NOT NULL default '',
  `
car_mileageint(4NOT NULL default '0',
  `
car_trackvarchar(100NOT NULL default '',
  `
car_vinvarchar(100NOT NULL default '',
  `
car_dealer_pricevarchar(100NOT NULL default '',
  `
car_sold_pricevarchar(100NOT NULL default '',
  `
car_sold_tovarchar(200NOT NULL default '',
  `
car_dealer_notestext NOT NULL,
  `
car_descriptionlongtext NOT NULL,
  `
car_tn_imageint(1NOT NULL default '0',
  `
car_imageint(1NOT NULL default '0',
  
PRIMARY KEY  (`car_id`)
TYPE=MyISAM AUTO_INCREMENT=;

-- 
-- 
Dumping data for table `site_cars`
-- 

INSERT INTO `site_carsVALUES (721162004'21800'8000'''''''''''''Almost new, super quiet ride. This has all the features that you want. Rated number 1 by ABC reports.'11);
INSERT INTO `site_carsVALUES (617142002'18900'25900'''''''''''''Need to tow your trailer, this is the vehicle for the job. Imaculate inside and out. CD player and leather seating.'11);
INSERT INTO `site_carsVALUES (519151995'9800'0'''''''''''''Test'11);

-- --------------------------------------------------------

-- 
-- 
Table structure for table `site_make`
-- 

CREATE TABLE `site_make` (
  `
make_idint(11NOT NULL auto_increment,
  `
make_parentint(11NOT NULL default '0',
  `
make_namevarchar(200NOT NULL default '',
  
PRIMARY KEY  (`make_id`)
TYPE=MyISAM AUTO_INCREMENT=23 ;

-- 
-- 
Dumping data for table `site_make`
-- 

INSERT INTO `site_makeVALUES (10'Audi');
INSERT INTO `site_makeVALUES (20'BMW');
INSERT INTO `site_makeVALUES (30'Renault');
INSERT INTO `site_makeVALUES (40'General Motors');
INSERT INTO `site_makeVALUES (50'Ford');
INSERT INTO `site_makeVALUES (63'Laguna');
INSERT INTO `site_makeVALUES (73'Megane');
INSERT INTO `site_makeVALUES (83'Clio');
INSERT INTO `site_makeVALUES (93'Logan');
INSERT INTO `site_makeVALUES (105'Escort');
INSERT INTO `site_makeVALUES (115'Focus');
INSERT INTO `site_makeVALUES (125'Mondeo');
INSERT INTO `site_makeVALUES (135'Fiesta');
INSERT INTO `site_makeVALUES (140'Chevrolet');
INSERT INTO `site_makeVALUES (150'Honda');
INSERT INTO `site_makeVALUES (160'Toyota');
INSERT INTO `site_makeVALUES (1714'Suburban');
INSERT INTO `site_makeVALUES (1814'Malibu');
INSERT INTO `site_makeVALUES (1915'Accord');
INSERT INTO `site_makeVALUES (2015'Civic');
INSERT INTO `site_makeVALUES (2116'Camry');
INSERT INTO `site_makeVALUES (2216'Sienna');

-- --------------------------------------------------------

-- 
-- 
Table structure for table `site_photos`
-- 

CREATE TABLE `site_photos` (
  `
idint(11NOT NULL auto_increment,
  `
carint(11NOT NULL default '0',
  `
titlevarchar(200NOT NULL default '',
  `
descriptiontext NOT NULL,
  `
tnint(1NOT NULL default '0',
  `
imageint(1NOT NULL default '0',
  
PRIMARY KEY  (`id`)
TYPE=MyISAM AUTO_INCREMENT=;

-- 
-- 
Dumping data for table `site_photos`
-- 

INSERT INTO `site_photosVALUES (12'Inside View''Image downloaded from .net'11);

-- --------------------------------------------------------

-- 
-- 
Table structure for table `site_users`
-- 

CREATE TABLE `site_users` (
  `
user_idint(11NOT NULL auto_increment,
  `
user_namevarchar(100NOT NULL default '',
  `
user_loginvarchar(100NOT NULL default '',
  `
user_passwordvarchar(100NOT NULL default '',
  `
user_levelint(1NOT NULL default '0',
  
PRIMARY KEY  (`user_id`)
TYPE=MyISAM AUTO_INCREMENT=;

-- 
-- 
Dumping data for table `site_users`
-- 

INSERT INTO `site_usersVALUES (3'Admin''admin''test'0);
INSERT INTO `site_usersVALUES (2'Jon Doe''test''test'1);

-- --------------------------------------------------------

-- 
-- 
Table structure for table `site_vars`
-- 

CREATE TABLE `site_vars` (
  `
idint(11NOT NULL auto_increment,
  `
namevarchar(200NOT NULL default '',
  `
valuetext NOT NULL,
  
PRIMARY KEY  (`id`)
TYPE=MyISAM AUTO_INCREMENT=37 ;

-- 
-- 
Dumping data for table `site_vars`
-- 

INSERT INTO `site_varsVALUES (32'ipp''15');
INSERT INTO `site_varsVALUES (33'mail_address''test@example.com');
INSERT INTO `site_varsVALUES (34'mail_title''AUTO: Details Request');
INSERT INTO `site_varsVALUES (35'mail_link''1');
INSERT INTO `site_varsVALUES (36'task_user''1'); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
The Following User Says Thank You to nuzzle For This Useful Post:
mysamsung (04-17-10)
  #9 (permalink)  
Old 11-30-04, 11:09 AM
lila lila is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Update on the site.

A new updated version has been posted on that site, looks like it addresses that issue. Let us know if that does work. I'd be interested in using it too, looks like a nice program.

Auto Dealer Website

Last edited by lila; 11-30-04 at 11:13 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #10 (permalink)  
Old 11-30-04, 03:54 PM
nuzzle nuzzle is offline
Newbie Coder
 
Join Date: Nov 2004
Posts: 26
Thanks: 0
Thanked 4 Times in 4 Posts
Well I figured it out!! yay! Thanks for the help and notice that they updated!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Auto Dealer 2.1 Now Available Tim General Advertisements 1 11-29-04 02:42 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 01:12 AM
Creating Website Script Problem Dainbramaged05 PHP 4 06-30-04 01:29 PM
Problem with Image Slideshow script jthornton13 JavaScript 1 06-24-04 10:27 PM
Send.Pl script problem BobbyC Perl 1 05-15-04 02:00 PM


All times are GMT -5. The time now is 01:02 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.