Re: [PHP-DB] Check Boxes

2004-08-18 Thread Jason Wong
On Wednesday 18 August 2004 20:07, Ford, Mike [LSS] wrote: > > > $sql = 'SELECT ' . implode(', ', $chkboxes) . 'FROM form'; > > > > Just note that with either solution, someone can post a value of "* > > FROM table WHERE 1#" and see everything in any table in your database. > > I was waiting for

RE: [PHP-DB] Check Boxes

2004-08-18 Thread Ford, Mike [LSS]
On 18 August 2004 15:53, John Holmes wrote: > Ford, Mike [LSS] wrote: > > > > $chkboxes = $_POST['ch']; > > > $sql = 'SELECT '; > > > foreach($chkboxes as $k => $v) > > > { > > > $sql .= $v; > > > if($k < (sizeof($chkboxes) - 1)) > > > { > > > $sql .= ', '; > > > } > > > } > > >

Re: [PHP-DB] Check Boxes

2004-08-18 Thread John Holmes
Ford, Mike [LSS] wrote: $chkboxes = $_POST['ch']; $sql = 'SELECT '; foreach($chkboxes as $k => $v) { $sql .= $v; if($k < (sizeof($chkboxes) - 1)) { $sql .= ', '; } } $sql .= ' FROM form'; $sql = 'SELECT ' . implode(', ', $chkboxes) . 'FROM form'; J

Re: [PHP-DB] Check Boxes

2004-08-18 Thread randy
yeah yeah...it's damn near 4 in the morning here...my brain isn't exactly on at the moment. :) On Wed, 18 Aug 2004 11:35:59 +0100, Ford, Mike [LSS] <[EMAIL PROTECTED]> wrote: > On 18 August 2004 11:24, randy wrote: > > > $chkboxes = $_POST['ch']; > > $sql = 'SELECT '; > > foreach($

RE: [PHP-DB] Check Boxes

2004-08-18 Thread Ford, Mike [LSS]
On 18 August 2004 11:24, randy wrote: > $chkboxes = $_POST['ch']; > $sql = 'SELECT '; > foreach($chkboxes as $k => $v) > { > $sql .= $v; > if($k < (sizeof($chkboxes) - 1)) > { > $sql .= ', '; > } > } > $sql .= ' FROM form'; $sql = 'SELECT ' . implode(', ',

Re: [PHP-DB] Check Boxes

2004-08-18 Thread randy
g_Units > Unit_Consumed > > > > > -Original Message- > From: John Holmes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 18, 2004 5:43 PM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] Check Boxes > > balwantsin

RE: [PHP-DB] Check Boxes

2004-08-18 Thread balwantsingh
ge- From: John Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 5:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP-DB] Check Boxes balwantsingh wrote: > can somebody advise me > i want to use checkboxes on my website, i want that if user selects some >

Re: [PHP-DB] Check Boxes

2004-08-18 Thread John Holmes
balwantsingh wrote: can somebody advise me i want to use checkboxes on my website, i want that if user selects some checkboxes (there will be more than 20 checkboxes), checkbox's value will be stored in variables and than SELECT query command will be run using these variables through PHP. but my p

[PHP-DB] Check Boxes

2004-08-18 Thread balwantsingh
can somebody advise me i want to use checkboxes on my website, i want that if user selects some checkboxes (there will be more than 20 checkboxes), checkbox's value will be stored in variables and than SELECT query command will be run using these variables through PHP. but my problem is that in SE

RE: [PHP-DB] check boxes and php

2003-03-27 Thread Hutchins, Richard
sday, March 27, 2003 6:16 AM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] check boxes and php > > > I want to create a page where the user will have a list of > its favorites and > by ticking a box opposite the item will be able to delete it > by clicking the > submit

[PHP-DB] check boxes and php

2003-03-27 Thread JDillon
I want to create a page where the user will have a list of its favorites and by ticking a box opposite the item will be able to delete it by clicking the submit button. I want to make this dynamic so that the php works out the one to delete based on the value of the tickbox (I'm thinking), having

[PHP-DB] check boxes and php

2003-03-27 Thread Dillon, John
I want to create a page where the user will have a list of its favorites and by ticking a box opposite the item will be able to delete it by clicking the submit button. I want to make this dynamic so that the php works out the one to delete based on the value of the tickbox (I'm thinking), having

RE: [PHP-DB] Check Boxes

2002-04-29 Thread Cal Evans
ammer * Techno-Mage * http://www.calevans.com * -Original Message- From: Julio Cuz, Jr. [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 10:33 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] Check Boxes Hi-- Does anyone have any suggestions, SAMPLES, or ideas on how to

[PHP-DB] Check Boxes

2002-04-29 Thread Julio Cuz, Jr.
Hi-- Does anyone have any suggestions, SAMPLES, or ideas on how to STORE, RETRIEVE, AND PROCESS values for "Check Boxes" w/PHP & Postgresql? Thanks! Julio Cuz, Jr. Riverside Community College [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://

RE: [PHP-DB] Check Boxes!

2001-10-22 Thread Rick Emery
S["chkAuthStatus_${i}"] = 'on') or:if($HTTP_POST_VARS["chkAuthStatus_{$i}"] = 'on') -Original Message- From: Matt C [mailto:[EMAIL PROTECTED]] Sent: Friday, October 19, 2001 6:43 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Check Boxes! I still

Re: [PHP-DB] Check Boxes!

2001-10-20 Thread p.whiter
Try removing the parenthesis from your update sql query $sql = "UPDATE vacancies SET AuthStatus='1' WHERE JobID = '$JobID'"; HTH Paul - Original Message - From: "Matt C" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

[PHP-DB] Check Boxes!

2001-10-19 Thread Matt C
I still can't get my damn code working :( :( :( All I want to do is have any records with a checked check box given the value of 1 in the AuthStatus row. Can anyone help me please? - JobID; for ($i = 0; $i <= $Max_JobID; $i++) { if($HTTP_POST_VARS["chkAuthStatus_$i"] = 'on') {

RE: [PHP-DB] Check Boxes/UPDATE

2001-10-03 Thread Jason Wong
>-Original Message- >From: Matt C [mailto:[EMAIL PROTECTED]] >Sent: 03 October 2001 23:17 >To: [EMAIL PROTECTED]; [EMAIL PROTECTED] >Subject: RE: [PHP-DB] Check Boxes/UPDATE > > >I am sorry but I still really don't get it :( > >How do I do the array t

RE: [PHP-DB] Check Boxes/UPDATE

2001-10-03 Thread Rick Emery
eck Boxes/UPDATE I am sorry but I still really don't get it :( How do I do the array thing? >-Original Message- >From: Jason G. [mailto:[EMAIL PROTECTED]] >Sent: 03 October 2001 12:12 >To: Matt C; [EMAIL PROTECTED] >Subject: Re: [PHP-DB] Check Boxes/UPDATE > >

RE: [PHP-DB] Check Boxes/UPDATE

2001-10-03 Thread Matt C
I am sorry but I still really don't get it :( How do I do the array thing? _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [E

RE: [PHP-DB] Check Boxes/UPDATE

2001-10-03 Thread Jason Wong
>-Original Message- >From: Jason G. [mailto:[EMAIL PROTECTED]] >Sent: 03 October 2001 12:12 >To: Matt C; [EMAIL PROTECTED] >Subject: Re: [PHP-DB] Check Boxes/UPDATE > > >Matt, > >Assuming that you have a variable number of records being displayed out of >

Re: [PHP-DB] Check Boxes/UPDATE

2001-10-02 Thread Jason G.
Matt, Assuming that you have a variable number of records being displayed out of the database: As you write out the HTML, give each checkbox a name containing the ID# of the record that is being written out. Ex: Use code like the following to Write and Read the web form... id;

RE: [PHP-DB] Check Boxes/UPDATE

2001-10-02 Thread Dave Watkinson
riginal Message- From: Matt C [mailto:[EMAIL PROTECTED]] Sent: 03 October 2001 03:23 To: [EMAIL PROTECTED] Subject: [PHP-DB] Check Boxes/UPDATE I have a page of jobs with AuthStatus set to 0. Basically I want to list each job title with a checkbox next to it. This I have done. What I really d

[PHP-DB] Check Boxes/UPDATE

2001-10-02 Thread Matt C
I have a page of jobs with AuthStatus set to 0. Basically I want to list each job title with a checkbox next to it. This I have done. What I really don't understand is how do I make it so that the rows in my table for all the different records when ticked are updated to 1? Please help. Matt