Jump to content

chopperwalker

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

chopperwalker's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If you haven't posted yet it returns an error. Try checking first with the isset() [code]<option value="Hardware"<?php               if (isset($_REQUEST['problem']) && in_array("Hardware", $_REQUEST['problem'])) {                 echo " selected";               } ?>>Hardware</option>[/code] For the SQL error: for the implode(), remove the ' ' from around the $_REQUEST['problem'] array. READ: implode($_REQUEST['problem']) NOT:implode('$_REQUEST['problem']') This should work: [code]$query = "INSERT INTO info_fra_bruker (first_name, last_name, city, email, hobbies, overige_informasjon) VALUES ('".$_REQUEST['first_name']."', '".$_REQUEST['last_name']."', '".$_REQUEST['city']."', '".$_REQUEST['email']."', implode(".$_REQUEST['problem']."), '".$_REQUEST['overige_informasjon']."')"; $result = mysql_query($query) or die(mysql_error()); [/code]
  2. You could use an iframe and simply have a refresh link that targets it. Other than that you would probably have to use an http_request and some javascript ("ajax");
  3. The escape_data() function isn't defined here. Is it defined in any of the included or required pages? It has to be defined before it is called.
  4. [quote]$query = "INSERT INTO info_fra_bruker (first_name, last_name, city, email, hobbies, overige_informasjon) VALUES ('". $_REQUEST['first_name']."', '".$_REQUEST['last_name']."', '".$_REQUEST['city']."', '".$_REQUEST['email']."', implode('".$_REQUEST['problem']."'), '".$_REQUEST['overige_informasjon']."')"; $result = mysql_query($query) or die(mysql_error()); [/quote] I think that this might do it.
  5. It has been moved: [url=http://www.phpfreaks.com/forums/index.php/topic,109727.msg442532.html#msg442532]http://www.phpfreaks.com/forums/index.php/topic,109727.msg442532.html#msg442532[/url]
  6. I am finishing up an e-commerce site for my company. There is an advanced search feature in which I have included additional fields specific to the type of product. Basically, you can define (from select menus) the Manufacturer, the Category, the Color, the Style, Price range, and Width range and it will spit out the products that are pertinent to these results. Standard and working. My goal is to have these menus included on the search results page. The options in the menus on results page should then be limited to the available options in the results returned. So, if you pick a manufacturer (submits query) the remaining menus will limit their options to product's attributes that are available from that Manufacturer. If there are 10 total colors in the system, and Manufacturer A only has 5 of those colors then only those 5 colors will be available. I tried $_GETing the variables and doing a new query for each menu. It wasn't clean and I would like to avoid more queries since there will eventually be 30,000+ products. I am thinking about trying to run a unique() on each needed field of the returned results. Maybe there is a better approach, any ideas? If I can get this running right and cleaned up I am going to submit it as an OsCommerce Contribute. I am running OsC 2 Milestone 2. I have moded the Products table to include the three extra fields mentioned above (color, style and width). Thank you for your input
  7. I am finishing up an e-commerce site for my company. There is an advanced search feature in which I have included additional fields specific to the type of product. Basically, you can define (from select menus) the Manufacturer, the Category, the Color, the Style, Price range, and Width range and it will spit out the products that are pertinent to these results. Standard and working. My goal is to have these menus included on the search results page. The options in the menus on results page should then be limited to the available options in the results returned. So, if you pick a manufacturer (submits query) the remaining menus will limit their options to product's attributes that are available from that Manufacturer. If there are 10 total colors in the system, and Manufacturer A only has 5 of those colors then only those 5 colors will be available. I tried $_GETing the variables and doing a new query for each menu. It wasn't clean and I would like to avoid more queries since there will eventually be 30,000+ products. I am thinking about trying to run a unique() on each needed field of the returned results. Maybe there is a better approach, any ideas? Thank you for your input If I can get this running right and cleaned up I am going to submit it as an OsCommerce Contribute.
×
×
  • 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.