[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 >

[PHP] Re: Accessing form variables

2002-03-20 Thread Matt Wallace
If your form is: 1 2 1 2 Then you'd have two php post variables available, a and b, each would have a value of 1 or 2, which you could get from HTTP_POST_VARS or, with later php versions, $_POST["a"] and $_POST["b"]. Joshua E Minnie wrote: > I have a form

[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 \n"; and instead of executing it, paste

[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 wi

[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