[PHP] Counting table fields having specific values

2003-02-27 Thread rentAweek support
I have a table where the row named hide can have a value 0 or 1. I want to obtain a count of all the rows where hide has value 0. The following works on mysqladmin: SELECT SUM( hide = 0 ) FROM `names` LIMIT 0, - 1 Giving SUM( hide = 0 ) 7 The PHP script statements generated are: $sql =

Re: [PHP] Text data truncated after first blank character in form fields

2003-02-18 Thread rentAweek support
Errnest Thanks. I used htlmentities and still have the truncation. Mike --- Ernest E Vogelsinger wrote: At 22:04 17.02.2003, Michael Eacott said: [snip] When I have the following in a form: ?php $testvar = a b c; ? input type=text size=20

Re: [PHP] Text data truncated after first blank character in form fields

2003-02-18 Thread rentAweek support
Kevin I tried flushing and also IE 6 and Netscape 6.2. Still getting truncation. Mike --- Kevin Stone wrote: Hmm. Don't know what to tell ya. It works on my computer. Have you tried pressing CTRL+F5 to flush your browser cache? - Kevin - Original Message - From: rentAweek

Re: [PHP] Text data truncated after first blank character in form fields

2003-02-17 Thread rentAweek support
Thanks I tried our your suggestion sic: input type=text size=20 name=testvar value=?php echo $testvar; ? Still truncation Mike --- Kevin Stone wrote: It's your HTML Failing to enclose the value in quotes may lead to truncation. Your output looks like this... input type=text size=20

Re: [PHP] Help with POSTing variable array names from a PHP script please.

2003-02-15 Thread rentAweek support
Jason Thanks for your help . I've implemented you advice. The problem persists in that I'm trying create the following situation: When the posted action php script runs I want the retrieved $_POST array to contain such information that the action script can find out what checkboxes were