Hi there
silly question maybe but i was wondering if it was possible
to do an
"if "statement on GetSQLValueString.
I have a form which has 2 checkboxes (yes and no) and a text
field
which only becomes visible if "no" is selected.
instead of having db
columns for the checkboxes AND the text field, i wanted just
one column
in the db and this would recieve either a Yes or the text
entry.
the problem is when i try and do this in PHP. At the moment
i have two
GetSQLValueString but i want to combine this into one
statement where
either a Y or text will be inserted. Any ideas on how to do
this?
------------------------------------------------------------
----
GetSQLValueString(isset($_POST['select_field]) ?
"true" : "",
"defined","'Y'","'N'"),
GetSQLValueString($_POST['text_field'], "text"),
------------------------------------------------------------
---------
any help/advice would be gratefully appreciated!
thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "PHP & MySQL" group.
To post to this group, send email to phpmysql googlegroups.com
To unsubscribe from this group, send email to
phpmysql-unsubscribe googlegroups.com
For more options, visit this group at ht
tp://groups-beta.google.com/group/phpmysql?hl=en
-~----------~----~----~----~------~----~------~--~---
|