Re: [PHP-DB] Mathematics Examples MySQL and PHP

2001-10-29 Thread Tamas Arpad
Does anybody have some examples about howto make mathematic functions in PHP with values from any MySQL table such as: Value 1 + Value 2 = Value 3 Value 1 - Value 2 = Value 3 Value 1 * Value 2 = Value 3 Value 1 / Value 2 = Value 3 maybe UPDATE tablename SET field3=field1+field2 ... but

Re: [PHP-DB] mySQL Query and blank fields

2001-10-25 Thread Tamas Arpad
On Thursday 25 October 2001 13:16, Niklas Lampén wrote: How can I query for specified fields that has to contain atleast 2 charters? SELECT * FROM foo_table WHERE length(bar_field)=1; Arpi Example: Field AAA contains '' (NULL) = No match Field BBB contains ' ' (one charter) = No