Re: integer field

2003-10-23 Thread Gabriel Ricard
FYI, PHP will automatically convert the data type to an integer if to use increment it like that. Just like if you had $var = 123; and then did $var .= "foo" it would be converted into the string "123foo". If you're still unable to change the value of $myrow, then I would consult the PHP mailin

Re: integer field

2003-10-23 Thread Rory McKinley
Have you tried casting the $myrow element to integer e.g $increase = (int)$myrow['first'] + 1; I think PHP will return the field as text by default and hence the addition will fail.. Rory McKinley Nebula Solutions +27 82 857 2391 [EMAIL PROTECTED] "There are 10 kinds of people in this world