Auto-update Shopping Lists
I have a shopping list, or multiple shopping lists, that users and sort and add/delete items from.
I know how to add/move/delete items, but that is with a submit button. Is there a way, probably through AJAX, that the mySQL tables will be updated automatically as things are changed?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Update Quantity Format For Simple Shopping Cart.
I have a shopping cart that I'm using in my website and it uses a drop down menu to select the quantity. For what I'm doing this will not work and I need this cart to update quantities by means of a text box. Code:
Auto Update Database
Is it possible make auto update a local MySql database after a certain time period from internet MySqL database ...
Script To Perform Auto-update Of Client Hosts?
I'm currently checking out what's available to add an auto-update feature à la Yahoo/MSN to our Windows applications written in VB. Those that I checked so far require generating a list of files along with a copy (full, or just a patched version) of each file, upload the stuff to a www server, and have the client app download the list of files to check whether it needs such and such patch. To make it easier for developers, I was thinking that the actual work of generating the list and patches could be done by a PHP script directly. Does someone know of such a beast, ie. go through the list of files in the directory, generates a hash for each to give it a unique ID, build a patched version of each file, build an INI file, and let the client apps handle things from there?
Mailing Lists
I have searched in many places about how to set up a mailing list that is scalable yet no web sites seems to want to give out this info. I need to have this mailing list be effective even up to hundreds of thousands of users. Any advice/resources on how to set up this mailing list?
Email Lists
How would I go about making email lists? Someone who has something similar to what I want told me that they handle it with PHP. I'm not talking about a form where I can email an entire list, but rather an email GROUP, such that any time email went to URL from ANYONE that is a member of my site, it would come into domainname.com, and then sent back out to everyone in the "group". Any info would be helpful. Is this possible with php? What is the email process? Right now I'm not even on a domain name on my own server.
Drop Down Lists
I have a drop down list with the town options 'Bury' and 'Ipswich' as shown below. When selecting one of the options, its value is passed to variable $townsearch. How do I change the drop down list so the option selected last time is then the current one shown in the drop down box? <body> <?php $townsearch = $_get['town']; ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="get"> <select size="1" name="town"> <option>ipswich</option> <option>bury</option> </select> <input type="submit" value="GO" /> </form>
Ordering Lists
I have developed a script (with help) that tries to order events stored in my .txt file by date. The .txt file looks like this: 1st|Jan|Meeting at House| 15th|Feb|Meeting at your House etc The script orders the dates from lowest to highest but does not order dates before the 10th. Apparently 1st - 9th comes after 31st.. Code:
Maintaining Mailing Lists
I've few doubts; I'm asking two problem here. 1st, can we use PHP for maintaining mailing-lists. Say, we've 1000 users, need be e-mailed a subscription newsletter i.e. $message is same, loop through e-mail array in db. 2nd, Web site search. We maintain database after reading files using PHP and manipulate results from db. Question is, if PHP is a solution for these problems, also, when users' ( 1 ), keywords' ( 2 ) dbs grow big! There is also a limit of a PHP script execution. In 1st case, PHP has to parse, suppose 10k subscribers, and generate 10k e-mail for sendmail program. Is PHP feasible for such things. What else, is a better and professionally used solution. I don't know CGI? Perl?
Multiple Selection Lists?
i have a mutliple selection list on a form that goes like this <select name='name' multiple size=6>"; echo "<option value='one'>one"; echo "<option value='two'>two"; echo "<option value='three'>three"; etc it works fine. BUT how do u call it. For example say i selected option one and three. How do i call that on the next page so that ONE and THREE are stored.
Less-expensive Way To Set Up Defaults In Lists Etc?
I'm currently setting up default selections in <select> lists by passing an array of those defaults as keys ( 'valuefoo' => true ) as an argument to the function that sets up the list. Then, as I build each <option>, I call array_key_exists ( thisoptionvalue, arrayofdefaults ) to check whether to include the 'selected="selected"' string. So the code looks something like Routine ( array( 'valuefoo' => true, 'valuebar' => true ) ) ; ..... function Routine ( $defaultvals ) { for ( $i= etc. ) echo '<option....' . ( array_key_exists( 'curroptval', $defaultvals ) ? 'selected="selected"' : '' ) . etc ' ; } (I've elided a lot of syntax, but you get the idea) That seems slow and tedious. Does anyone know a cheaper way?
Quote's Invoices Lists...
I need someone to bounce some ideas off. This is what I'm trying to do, I want to be able to create a script that will spit out a quote based on the information filled in. The part I'm stuck on is. Entering all the items in. Ok, say I have a form, it starts off where you put in all the details (eg, who the quote is for address phone no etc.) Then there will be a list of items to go onto the quote. Now this is the part I'm stuck on. I'm thinking maybe something like an add new item button that opens a new window and then you enter in the details for each item. This then adds each item to the quote. Each item that is entered can be added directly to the database. So what I'm thinking maybe is a popup window that you fill in the details for each item, you hit submit, and then it goes back to the origional quote page, but now with the item added to the list. Maybe is there java script where you can open a new window and then refresh the parent window when the child is closed? this would then have the items listed.
Dropdown Lists From A Mysql Db
Id like to load a drop down list from a mysql database using php3 and create a link to that record. Does anyone have any ideas?
Mailing Lists Under Apache
I must develop mailing lists under Apache but I don't know how to do this, so, if someone knows how to do this.
Drop Down Lists And Variables
I have a dropdown list with values and I am having trouble getting the value chosen into a variable so that I can use it in an if statement.
Multiple Lists Selection
I am using a simple registration form that i made with the toolbox, but when I come to a multiple list to choose from (populated from the database) it doesn't work correctly. Of course, out of the multiple items selected only the last one gets inserted. From what I have read, the selection must be turned into an array then looped for this to work. Is this correct? Next how would I code this to work right. If you let me know which code to post, I will post it.
Multiple Selection Lists &
I have 2 multiple selection lists. I am using javascript so that users can select items from list 1 and move them to list 2. When the user submits the form I need my php to get the values he has/she has in list 2... I have done printf($_POST['list_2']) and it only shows one value, even when multiple are selected. I read that I need to change it's name to list_2[] but if I add the brackets to the name my javascript quits working.
Dynamic Dropdown Lists
I am recoding a greeting card website. I am using dropdowns as filters for items in a DB, so when the user picks "animals" from the "theme" dropdown, the returned cards all feature animals, and when the user picks "birthday" from the "message" option, the returned cards all feature birthday cards. However, there are some combinations that don't return any results, for example "get well" "floral" cards. Code:
Classes And Dropdown Lists
The class below works fine. The problem I have is there's a dropdown list in the middle of the loop. The dropdown list gets its data from another table in the database. Which goes through the same class. So I have a loop within a loop. What I'm trying to do is ....
Create State-cty Dropdown Lists
I've gotten everything up and running except for this -- I'd like to be able to have people have a dropdown list of cities in the US to use (or wherever) and not have to input them manually into a text field. When you do then there are issues of misspellings, etc. Now I have a list of cities from each state that is a sample that works in an html page. Problem is that it takes up 2 MB! Way too much to load on a single page and I was wondering how this is accomplished best -- do people use javascripts that can pull information from another flat flie? Do people use PHP to connect to a mysql database that might have a list of these fields and then reloads the page? I'm really not sure of best options and would be grateful for anyone to give me pointers or whether there are other examples and even places to buy these databases (not likely but good to have if I decide to do so.)
Session Info And Pull Down Lists
i have a html pull down list (<SELECT etc etc <OPTION VALUE .....) and i have the particular value the user last chose it to be in a $_SESSION['value']. How do i set the selected item of the list to this one? I can just add it in as the selected item of the list but then it appears twice.
If You're Good With Arrays And Lists, This One's For You
I'm using PHP 4.4.4. Let's say I have two scalars, $list1 and $list2. Both are comma separated lists of ordered, unsigned, unique integers. An example would be $list1 = "2,26,345"; $list2 = "3,4,26,35,525"; I am wondering if there is a short way of determining if all the numbers in $list1 occur in $list2.
Creating Form 'select Lists' Using PHP
Is it by any chance possible to use mysql and php to auto create the content for drop-down lists on forms by retrieving the values from a database? The reason i ask is that on a site i am making i am asking users to select from list (e.g. nationality) however i would like to avoid typing out every possible value of which there are about 40 (which change). I would much prefer to keep a seperate table in my database for the site.
Sorting Alphabetically Backwards Lists
This code runs @ http://www.ckoogle.com but the trouble is once I get the list backwards, and in an array. I can't sort the new array into alphabetical order. Anyone know a way to do it? <?php echo '<form action="index.php" method="post">' echo '<textarea name="input" cols="12" rows="20">' echo '</textarea><br>' echo '<input type="submit" value="Submit">' echo '</form>' if( isset( $_POST["input"] )){ $my_array = $_POST["input"]; $my_array=strrev($my_array); $my_array=explode(" ", $my_array); print_r($my_array); sort($my_array); print_r($my_array); for($cnt=0; $cnt < count($my_array); $cnt++) { echo(strrev($my_array[$cnt])); echo('<br>'); } } ?>
How To Get Hotmail/Yahoo/Aol Contact Lists ?
is there anyone familiar with the part how does most of the match making sites/schedular websites are accessing your Hotmail/Yahoo/Aol address book and even inviting your friends rather choosing one by one from your address book manually by you and make you be in the same Network?
Detecting Checkboxes And Option Lists
I am trying to figure out how to detect a <Form> check box being checked in a PHP script. Likewise, I am trying to figure out how to detect which option was chosen in a <option> list of drop-down items in a form. Code:
Pulling Options Lists From Mysql Tables
I've set up a form to load data into my db, but rather than hard code the options lists for three of the form fields, I'd like to pull that information from three lookup tables. This will allow whoever is inputting data to do a simple update for the three lookup tables, and speed enter the data into the form for the fourth (data) table without having to alter the code in the form. Here's the wish list. The three lookup tables have a key field and a description field. I want to display the description field content for selection by the user in the form (for example, from EventClass table, display "Single Pony" and return "1" to the CompClass field if Single Pony is selected Display "Pair Pony" and return "2" to the CompClass field if Pair Pony is selected display "Single Horse" and return "3" to the CompClass field if Single Horse" is selected (etc.) in EventScores), and have the key field content loaded with the data into the data table. Once I've figured the coding for one, I can duplicate the effort for the other two tables. I have seen PHP coding inserted inside php code. I've never seen this particular practice in any other language I've programmed in. Is this how a connect/query is handled inside a form which is inside a php script? <?PHP <form><?PHP ?> </form> ?> ?? To put it another way, I want to retrieve the data from a table and display it in the options box of the form. Then, when a option value is selected, I want the key for that value returned to the table in which data is being loaded.
One Result Set Makes Two Lists With Same Keys And Values
I have a page with two drop-downs, each listing the same employee names and their id's as the values. So they look like: <select name="selection_1"> <option value="12">Curly</option> <option value="8">Larry</option> <option value="36">Moe</option> </select> ....then further down the page: <select name="selection_2"> <option value="12">Curly</option> <option value="8">Larry</option> <option value="36">Moe</option> </select> Currently I am doing this, which works but seems sloppy: <select name="selection_1"> <? while($employees=mysql_fetch_assoc($qry_rslt)) { /* ADD NAMES TO DROPDOWN WITH emp_id's AS THEIR VALUES */ ?><option value="<?=$employees['emp_id']?>"><?=$employees['name']?></option><? /* CREATE ANOTHER ARRAY WITH THE emp_id AS THE KEY */ $emp_list_2[$employees['emp_id']]=$employees['name']; } ?> </select> Then on the second drop-down: <select name="selection_2"> <? foreach($emp_list_2 as $key => $emps) { ?> <option value="<?=$key?>"><?=$emps?></option> <? } ?> </select>
Saving Selection In Drop-down Lists In PHP After Page Reload?
I can't find an answer to my quesiton anywhere. Given a drop-down list with USA states and other text fields I pass this information for further processing via PHP. If any of the required fields is empty, the PHP script would return an error and reload the form page asking to fill out those fields. All entered information is saved... except for the drop-down list selection. I tried to write a Javascript function which is echoed by PHP, but interpolation of PHP variables in the Javascript section gives a syntax error message in Javascript. The PHP script returns, e.g., an "AL" string for Alabama. Of course, I don't want to write PHP code for each option to make it selected.
Looking For Shopping Example:
I recently bought a text on php scripting, and was trying to write basic shopping example to explore the langauage. I would like to achieve a site which allowed the user click one or two buttons. And we kept a count of number of hits. My thought was to use the $_SESSION tool to store the number of clicks, and when the user clicked the grey submit buttton. The $_Session values would be passed to the another php script. $_SESSION["item1"] = 0; $_SESSION["item2"] = 0; My book does not include such an example, and I would much appreicate if anyone could proivde a example similar to what I hoping to achieve. Or just some written guidance how I could achieve this example.
Shopping Cart..
Does any one know where I can find a simple but effective free php/MySQl shoopping cart? I have looked on hotscripts.com and other like that but I can't seem to find one I like. I am looking for a cart that runs of a single table in a database which have offline ordering, can have images, to add products to the database there is a simple form. when you add to cart maybe the page will refresh and have XXX added to cart, be able to add the amount in using a imput box beofre submitting to the cart maybe.. if anyone knows of any good links where I could find something like this I would really appreciate it. thanks Adam
Shopping Carts?
Is there any good shopping cart software out there that is PHP can customizable?
Php Shopping Cart
Anyone knows which is the best free PHP shopping cart software that support linux?
PHP Shopping Cart
Does anyone now of free shopping cart scripts that i can use to adapt into my own design.
Shopping Cart
does anyone know of a good shopping cart system already build. not a full blown store...one just to store orders and details.
Who Here Has Done PHP Shopping Carts Before?
I need a back-to-basics shopping cart tutorial in PHP/mySQL. I thought I had it down and I failed, as usual. Here is what I mapped out as a spec: 3) initial work on bestilling.php to contain the following plan: 1) Cookie: 'nordicnet_bestilling' to contain unique, random 16-char string 2) Table: nnet_produkt_bestilling to contain ordering information bundled by unique bestilling_id (16-char string) a) produkt_id b) farge_id c) storrelse_id d) quantity ordered e) bestilling_id f) nordicnet_registration_number 3) *PROPOSAL* To make cookie a timed cookie - if user does not check out in X hours the cookie will be deleted 4) *PROPOSAL* CRON-based PHP script to systemically wipe out any stray rows in nnet_produkt_bestilling that have not yet been checked out 5) Idea plan for bestilling: a) User will order produkt in vis_varegruppen.php b) bestilling.php will do server-side checking of produkt, farge, storrelse and quantity based upon entry in nnet_produkt_farge_storrelse_assoc c) bestilling.php will then check if $_COOKIE['nordicnet_bestilling'] already exists (meaning you have an order # - or, a cart ('bestill') d) If you have a cart then check if there is already a row in nnet_produkt_bestilling with same produkt_id/farge_id/storrelse_id with your matching bestilling_id e) If so then increase quantity ordered by the quantity you ordered and check quantity totals against nnet_produkt_farge_storrelse_assoc f) If NOT then add new row with produkt_id, farge_id, storrelse_id and quantity with your bestilling_id and registration number g) -- If you do NOT have a cart (no cookie) then generate a new cart (bestilling) id into a cookie h) If other people ordered the same item be sure to check their quantities ordered against yours and what is in stock before proceeding So far this is what happens: 1) I enter products into the cart 2) If I delete items from the cart, they can be deleted; if I delete all items from my cart, the cart cookie is deleted, I think. 3) I try to re-enter the same item into the cart, it inserts into the db w/ a NULL value for 'nnet_user_bestilling_id' which is the cart id (which it's not supposed to do) and browser-side logic fails, you get the wrong screen and all kinds of garbage I cannot even go into because it's in Norwegian I have tried for nearly 24 hours to build a cart and I can't seem to get it done.
Php Shopping Carts?
I need to develop a site using php and it needs shopping cart functionality. I was wondering if anyone had any suggestions for pre-written applications that would provide me with a professional result. I've been looking at "The Exchange Project" and was also wondering if anyone had any experience with this group.
Shopping Cart!!!
I am trying to create a shopping cart for my toy store website I am not sure where to start.
Shopping Basket
I started my shopping cart about a month ago , its something I have always wanted to do for education purposes. I have done the main parts. I just need your input on how I would do the following. When a user add a product to the cart this gets stored in table with a session id. When the users views the cart it looks something like this. I want to be able to store this information in a new table called OrdersComplete. How would I do this? The problem I am having is that everyone orders will be different. How can I take one chunk of information like this below, and store in a field on the database. Crazy thing is I have managed to do everything else, its taken a month on and off and yet I get to the end and now I am stuck. I first thought of sticking this info in hidden fields but then again, this is fine if the table always had the same amount of fields and every order was the same, but it wont.
PHP Based Shopping Cart
Does anyone know of a basic (or more advanced) shopping cart out there written in PHP that processes orders but emails the order to a store owner rather than process the payment? I have a specific need for such function and don't mind installing a more full featured cart as long as I have the ability to disable the online payment section. I have access to a MySQL database so that is not a problem if it requires one.
PHP4 And Shopping Cart
After studying mymarket code i'm trying to write a shopping cart of my own. I'm using the mymarket Cart class. I'm alittle confused as to how PHP keeps track of what item's the user has in their shopping cart and how PHP originally query's the database for which product id's are available. In cart_add.php it add's an item by calling.. $SESSION["cart"]->add($id, 1); I have no idea what the "->" means lol. I'm pretty new. I'm guessing that $SESSION["cart"] is part of the session started and it's calling the Cart class for some reason. I'm also guessing that add() is a function defined in cart.php. All of this is cool but when I goto shopping_cart.php after I think i've added an item I get some error about $qid being undefined. I'm willing to deal with that, its ok, I just figured i'd write my own database query to display the item's in the shopping cart. Problem Is I don't know where to start! Could anyone be so kind as to help? I've been struggling with this for day's. If by this time i've confused you to the point where you have no idea what i'm talking about i'm sorry reach me on ICQ as 75138423 and I can try to explain better. If your struggling with the same sorts of problems contact me too and maybe we can work it out togethor.
Php Sessions Shopping Cart
I have been recently trying to set up an online shop using a free shopping cart package (Shop Script). I set this up on my personal website to test it out and there were no visible problems. The person I am making the site for then decided they would prefer to use Lycos eshop instead. Once the package had been purchased it was found that it did not meet our requirements so I transferred the shop script cart over to this space. I now found that the shopping cart is randomly filled with items from time to time, there is no apparant pattern to when this occurs only that the items added are items that were earlier added to the cart. From what I can tell it appears that when I empty the cart, the session is cleared but then when I load a page, data is being put back in to the session! I am using PHP version 4.3.9. Lycos seem to have disabled a few PHP functions, (sessions are not one of them) not sure if this has anything to do with it. I have noticed that the session.cookie_lifetime is not set to 0 so the session is not ending when the browser is closed, i am wondering if this has something to do with it. Does anyone have any idea what the problem is and a possible solution.
Shopping Carts In PHP And Security
I have had two clients recently ask me about shopping carts. I have also been using PHP on a more regular basis and thought I could find an open source shopping cart such as oscommerce. It seems as though oscommerce requires "register globals" turned on. I know this is a bad idea. Also my hosting company won't turn them on (not that I would want that). This got me thinking about a few things and I was wondering what others experience on the subject is. I could find very little information about this subject on Google. I apologize if this is not the correct forum to present these topics. As a note: I have built enrollment and authentication systems in PHP, just not a store site. What are peoples experience on these topics? 1. If using a cart with "register globals" on, has there been any problems with injection of incorrect data? Are people being overly paranoid of "register globals" being on? 2. Are there any solutions open source or paid that have "register globals" turned off. 3. What kind of security are shopping cart ASPs providing? I guess using a provider could provide security as long as people didn't know the source code of the program. 4. Is any downloadable PHP shopping cart preferred over another?
Shopping Cart Issue
I am retriving the price, name, and qty in stock from MySQL database, The problem i have got is when the products are added to the cart it is adding the wrong infomation, it dosent matter what product u select the infomation put into the cart will be the first one listed in the database, it just keeps extracting the next one in db every time, Code:
PHP/MySQL Shopping Cart Help!
I am taking a classs in advance PHP. We have dove in MySQL also and for a final we are to build a shopping cart. I am looking for tutorials that will help me put up a basic shopping cart that will provide me with a basic false transaction up to invoice.
Shopping Cart Recomendations?
I'm looking for a PHP shopping and thought I would start by asking if there is one that stands out as the best. (Oh yeah, it has to be a free one.).
PHP Shopping Cart Software
have any thoughts on shopping cart software? Shop-Script sounds good... because it's free. But the main thing I need is the ability to interface with Google Checkout. also looking at: X-Cart Cubecart NetSuite Inc. Ingenta Others?
PHP Shopping Mall Scripts
Can anyone recommend a robust and secure ready-made, free or paid PHP/ASP script-package that provides an online shopping mall, where merchants/sellers can sign up and upload products for sale on the online shopping mall? They (sellers) fill up the shopping mall with items they want to sell to visitors/buyers. The script has to be customizable for various payment platforms. It also has to support the Windows platform.
|