Re: [PHP-DB] Defined Constants

2005-10-13 Thread Ng Hwee Hwee
this works like a charm!!! thanks alot!!! :o) - Original Message - From: "Matthias Willerich" <[EMAIL PROTECTED]> To: "Ng Hwee Hwee" <[EMAIL PROTECTED]>; "PHP DB List" Sent: Thursday, October 13, 2005 2:28 PM Subject: RE: [PHP-DB] Defined Const

RE: [PHP-DB] Defined Constants

2005-10-13 Thread Arno Kuhl
Oops - sorry, got that one completely wrong! A solution should say: form code: define("JOVIAL", "likes to joke alot"); define("CHEERFUL", "always wears a smile on his face"); define("ADVENTUROUS", "likes sports and plays well too"); define("MYSTERIOUS", "there's always something to discover everyd

RE: [PHP-DB] Defined Constants

2005-10-13 Thread Arno Kuhl
In your select, you need to remove the quotes around your defines, otherwise it is interpreted as a quoted string. So your select statement should look like: Arno DotContent Professional Content Management Solutions www.dotcontent.net -Original Mes

RE: [PHP-DB] Defined Constants

2005-10-12 Thread Matthias Willerich
2 possibilities: either you put the defined value instead of the definition down in the option value (but i'm sure you thought of this one) or you use "echo constant($_POST['myType']);". Or GET, depending on how you send your form. Hey, this time I learned something, too! I found it in the php hel