[PHP] Re: why doesnt this work???

2002-03-20 Thread Matt Wallace
What I think you'd note, actually, is that you ALWAYS get the matching echo, and never the non-matching, because you're using an assignment operator instead of comparison. It should read if ($line[1]==' instead of ($line[1]='. --Matt Chris wrote: this script receives vars b and p from a

[PHP] Re: Delete Confirmation

2002-03-20 Thread Matt Wallace
Daniel Negron/Kbe wrote: Does anyone have examples of record deletions from php to mysql Could you be more specific? $sql = DELETE from tablename where tablename_idx = $index; $result = mysql_query($sql); would be a very simple example of deleting a record from a hypothetical database with

[PHP] Re: new to php/mysql - insert not working

2002-03-20 Thread Matt Wallace
The actual typo in your code is a trailing comma in your sql statement. '.$img_group.', '.$display.', ); Strip out the comma after your last single quote. It's very useful to have CLI access to mysql. Then you could just say, print QUERY: $query BR\n; and instead of executing it, paste it

[PHP] Re: Accessing form variables

2002-03-20 Thread Matt Wallace
If your form is: SELECT name=a OPTION value=11/OPTION OPTION value=22/OPTION /SELECT SELECT name=b OPTION value=11/OPTION OPTION value=22/OPTION /SELECT Then you'd have two php post variables available, a and b, each would have a value of 1 or 2, which you

[PHP] Re: sessions not so secure..solution?

2002-03-20 Thread Matt Wallace
Steve Clay wrote: Hello, I'm building an e-commerce site which uses sessions to hold my $cart object. This works great but I've two worries: 1) When the user connects through our secure hostname, can I ensure the browser will send the server the cookie (w/ SESSID)? The user will