Jump to content

murphydesigns

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

murphydesigns's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi All, I found a simple PHP shopping cart for a client here, http://v3.thewatchmakerproject.com/journal/276/building-a-simple-php-shopping-cart I need to "modify" it so that it acts more like a Quote Cart, I need to add the items to the "cart" and them stored in a session until they complete their shopping. Once they are complete I need to figure out how to email that list to the client. Is there a script out there that does that, I do not need a functioning E-Commerce website, it really needs to just have the product database, and a way to store the products and email them to the quoter. Any thoughts?
  2. Hi There, I am a major noobie at PHP programming, and I am trying my best to get this car inventory script working properly for me. Here are the issues I am having: 1) When I enter values for the year and the price it keeps coming back to say there are no matches, which is not right 2) The search results are not in the same color as the previous search screen (when you hit submit they revert back to the black text, I need them in grey) Any help would be appreciated, I have looked through the PHP, and MYSQL books I have but I am not sure how to integrate what I have read into the exisiting code. Below is the search.html file: <!--S:Search--> <script language="JAVAScript" > function Model(newmodel) { var models = new Array(); {SCRIPT} for (var i = document.forms[0].model.options.length ; i >= 0 ; i--) document.forms[0].model.options = null; if (newmodel == "" ) return ""; //adding the new values; for (var i = 1 ; i < models[newmodel].length ; i++) document.forms[0].model.options[i-1] = models[newmodel]; } </script> <style type="text/css"> <!-- .fontcolor { color: #C0C0C0; } body,td,th { color: #CCC; } body { background-color: #000; } .fontcolor { color: #C0C0C0; } --> </style> <body bgcolor="#000000" text="#CCCCCC" class="fontcolor"><form action="search.php" method="get"> <table align=center> <tr> <td><span class="fontcolor">Make & Model</span></td> <td><span class="fontcolor">{MAKE} & {MODEL}</span></td> <tr> <td><span class="fontcolor">Price range:</span></td> <td><span class="fontcolor">FROM: $ <input type="text" name="pf" value="{PF}" size="5"> TO: $<input type="text" name="pt" value="{PT}" size="5"> </span></td> </tr> <tr> <td><span class="fontcolor">Year range:</span></td> <td><span class="fontcolor">FROM: <input type="text" name="yf" value="{YF}" size="5"> TO: <input type="text" name="yt" value="{YT}" size="5"> </span></td> </tr> <tr> <td align=center colspan=2><span class="fontcolor"> <input type="submit"> </span></td> </tr> </table> </form> <!--E:Search--> <!--S:Select--> <select name="{NAME}" onChange="{ONCHANGE}"> <option value="">[ select ]</option> {OPTIONS} </select> <!--E:Select--> <!--S:SelectOption--> <option {SELECTED} value="{VALUE}">{NAME}</option> <!--E:SelectOption--> Here is the search.php code: <?php require "config.php"; $_PAGE = "index"; $_GET["sub"] = "search"; $site = new CSite("admin/site.xml"); $site->Run(); ?> Thank you in advance, I promise this is my last issue with this script.
  3. This was an issue with the database itself, unfortunetly I did not have the chance to backup the database...
  4. Hi There, I am having issues changing the font color on the search results of my car inventory. The search field is the proper color, I have chosen grey, before you hit submit, but once you receive the results it defaults back to the black font. I am not sure where I have to change this. I found the script here: http://car-dealer-website.org/ Any help would be appreciated Thanks in Advance
  5. Hi There, I have a few questions, and I think they maybe related. I have managed to get my database loaded and functioning correctly except for a couple of things, the first issue is for some reason the database is not showing up on the phpmyadmin screen, according to that screen I have no databases..which is bad because I have loaded all the information and pictures. My second issue is the search feature for price and year do not yield any results, I am thinking that they are related, or am I totally off base? Any help with this would be greatly appreciated. The web address for the search is http://www.ellerbeckmotors.ca/search.php Here is the code for the search engine portion: <!--S:Search--> <script language="JAVAScript" > function Model(newmodel) { var models = new Array(); {SCRIPT} for (var i = document.forms[0].model.options.length ; i >= 0 ; i--) document.forms[0].model.options = null; if (newmodel == "" ) return ""; //adding the new values; for (var i = 1 ; i < models[newmodel].length ; i++) document.forms[0].model.options[i-1] = models[newmodel]; } </script> <style type="text/css"> <!-- .fontcolor { color: #C0C0C0; } --> </style> <form action="search.php" method="get"> <table align=center> <tr> <td><span class="fontcolor">Make & Model</span></td> <td><span class="fontcolor">{MAKE} & {MODEL}</span></td> <tr> <td><span class="fontcolor">Price range:</span></td> <td><span class="fontcolor">FROM: $ <input type="text" name="pf" value="{PF}" size="5"> TO: $<input type="text" name="pt" value="{PT}" size="5"> </span></td> </tr> <tr> <td><span class="fontcolor">Year range:</span></td> <td><span class="fontcolor">FROM: <input type="text" name="yf" value="{YF}" size="5"> TO: <input type="text" name="yt" value="{YT}" size="5"> </span></td> </tr> <tr> <td align=center colspan=2><span class="fontcolor"> <input type="submit"> </span></td> </tr> </table> </form> <!--E:Search--> <!--S:Select--> <select name="{NAME}" onchange="{ONCHANGE}"> <option value="">[ select ]</option> {OPTIONS} </select> <!--E:Select--> <!--S:SelectOption--> <option {SELECTED} value="{VALUE}">{NAME}</option> <!--E:SelectOption-->
  6. Maybe there is something wrong with my details...maybe I should erase everything and start from scratch. I entered in the server that my host has displayed, the user name and password to the database, and the database name. frustrating!!! were the files you uploaded in the root director, public folder??
  7. Certainly, here is the link to the page where I located the script http://car-dealer-website.org/ Any help would be appreciated
  8. I added the code to the PHP page....index.php <?php ini_set('display_errors',1); error_reporting(E_ALL); //define("PB_CRYPT_LINKS" , 1); require "config.php"; $site = new CSite("./site.xml",true); $site->Run(); ?> I am still getting a blank page, could there be an issue with the config.php file? This is the config file: <?php define("_LIBPATH","./lib/"); require_once _LIBPATH . "site.php"; ?> Is there a particular directory I need to be placing the files, I have them in the root directory. Thanks for the quick reply, I feel a little lost, and I am running out of ideas.
  9. Hi All, I am pulling my hair out with this problem, I am looking for suggestions to help debug this problem ASAP. I am fairly new to PHP, this is my first database attempt. I am using a car database obtained for free off the web. I think I have the database information entered in properly, it is shown below: <database type="mysql"> <server>sql5c11b.megasqlservers.com</server> <login>ellerbeckm619178</login> <password>*****</password> <default>phpmy1_ellerbeckmotors_ca</default> </database> I managed to get rid of the connection error I was getting by playing around with the login and servers. The issue is now I am getting a blank screen. Does anyone have any thoughts, I have tried everything I know of. Thanks in Advance
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.