Re: [PHP-DB] Page refresh question

2005-06-09 Thread Han
Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and it was to use javascript to put their choices (onclick, field.value=£3 type of thing) and when they click the OK button it gets sent to php script that sends it to mysql, etc. 2 is pretty much the same but using cookies

Re: [PHP-DB] Page refresh question

2005-06-09 Thread Mihai Frisan
i think that the best solution is to use XMLHttpRequest mihai ps. i don't think is a good idea to save the shopping cart in a cookie on client side (i can alter, as a client, the prices from shopping cart) Han wrote: Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and it

Re: [PHP-DB] Page refresh question

2005-06-09 Thread Bobo Wieland
...or if everything else fail, do it the ugly-hack style and us a frameset with an 1 px wide frame where you update the db... just target the update to the invisible frame and only that gets updated... _bobo www.bitbob.biz Chris Payne wrote: Hi there everyone, I'm using PHP and MySQL in

Re: [PHP-DB] Creating an Associative Array

2005-06-09 Thread Brent Baisley
Not quite following your code completely. For instance, where does array(3601) come from? Your loop is putting and array into an slot in another array. I think what you are trying to do is just put a value in a named slot, like this: for($counter = 0; $counter = 3600; $counter++) {

[PHP-DB] Postscript generation . . .

2005-06-09 Thread Phares Kariuki
Hi, I am currently constructing an auctions system. There is only one problem; It is a localised auctions system and hence the owner of the site wants printouts that can be collected on a weekly basis from all the participating outlets. These scripts are meant to be a breakdown of everyone who

RE: [PHP-DB] Page refresh question

2005-06-09 Thread Bastien Koert
use a hidden frame to do the submission bastien From: Chris Payne [EMAIL PROTECTED] To: php-db@lists.php.net Subject: [PHP-DB] Page refresh question Date: Thu, 9 Jun 2005 00:33:12 -0400 Hi there everyone, I'm using PHP and MySQL in a shopping cart system but the client wants it so that

Re: [PHP-DB] Page refresh question. .

2005-06-09 Thread Martin Norland
Chris Payne wrote: I'm using PHP and MySQL in a shopping cart system but the client wants it so that when you add an item to the cart the page doesn't refresh and we all know with PHP the page MUST refresh in order to execute the MySQL query. Is it possible, maybe with javascript? That I can

Re: [PHP-DB] Page refresh question

2005-06-09 Thread Stéphane Bruno
You may also open a sized new window where the update takes place and the user has a confirmation and a close button. Stphane On Thu, 2005-06-09 at 04:32, Bobo Wieland wrote: ...or if everything else fail, do it the ugly-hack style and us a frameset with an 1 px wide frame where you update

[PHP-DB] Re: Subject: Creating an Associative Array

2005-06-09 Thread dpgirago
Thank you kindly, Neil Smith and Brent Baisley. I now see the error of my approach. --- $dateArray = array(); for($counter = 0; $counter = 3600; $counter++) { $dateArray[

Re: [PHP-DB] Page refresh question

2005-06-09 Thread mihaifrisan
i think that the best solution is to use XMLHttpRequest mihai ps. i don't think is a good idea to save the shopping cart in a cookie on client side (i can alter, as a client, the prices from shopping cart) Han wrote: Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and

[PHP-DB] Re: Subject: Creating an Associative Array

2005-06-09 Thread dpgirago
Thank you kindly, Neil Smith and Brent Baisley. I now see the error of my approach. --- $dateArray = array(); for($counter = 0; $counter = 3600; $counter++) { $dateArray[

Re: [PHP-DB] Page refresh question

2005-06-09 Thread han
Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and it was to use javascript to put their choices (onclick, field.value=£3 type of thing) and when they click the OK button it gets sent to php script that sends it to mysql, etc. 2 is pretty much the same but using cookies with

Re: [PHP-DB] Page refresh question

2005-06-09 Thread sbruno
You may also open a sized new window where the update takes place and the user has a confirmation and a close button. Stéphane On Thu, 2005-06-09 at 04:32, Bobo Wieland wrote: ...or if everything else fail, do it the ugly-hack style and us a frameset with an 1 px wide frame where you update

Re: [PHP-DB] Page refresh question

2005-06-09 Thread han
Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and it was to use javascript to put their choices (onclick, field.value=£3 type of thing) and when they click the OK button it gets sent to php script that sends it to mysql, etc. 2 is pretty much the same but using cookies with

[PHP-DB] Re: Subject: Creating an Associative Array

2005-06-09 Thread dpgirago
Thank you kindly, Neil Smith and Brent Baisley. I now see the error of my approach. --- $dateArray = array(); for($counter = 0; $counter = 3600; $counter++) { $dateArray[

Re: [PHP-DB] Page refresh question

2005-06-09 Thread mihaifrisan
i think that the best solution is to use XMLHttpRequest mihai ps. i don't think is a good idea to save the shopping cart in a cookie on client side (i can alter, as a client, the prices from shopping cart) Han wrote: Hi, I can think of 2 solutions: 1 is an old one I used ages ago, and

[PHP-DB] mySQL UPDATE

2005-06-09 Thread Ron Piggott
I created a PHP based mailing list that sends out a Bible verse and a quotation each day. Today's verses were: Bible verse of the day: Matthew 17:19-21 Then the disciples came to Jesus privately and said, Why could we not cast it out? And He said to them, Because of the littleness of your

Re: [PHP-DB] mySQL UPDATE

2005-06-09 Thread Philip Hallstrom
On Thu, 9 Jun 2005, Ron Piggott wrote: I created a PHP based mailing list that sends out a Bible verse and a quotation each day. Today's verses were: [snip] Let me show you some code: It selects a Bible verse: SELECT * FROM bible ORDER BY RAND() LIMIT 1 On a side note, this is going to

[PHP-DB] RE: mySQL UPDATE

2005-06-09 Thread Bastien Koert
whats the col type of the bible-verse_ref field? If its not a numeric field (ie autonumber key) then perhaps consider adding one, and updating on that key... Bastien From: Ron Piggott [EMAIL PROTECTED] Reply-To: Ron Piggott [EMAIL PROTECTED] To: PHP DB php-db@lists.php.net CC: Bastien Koert