note 107957 added to control-structures.if
| From: | nagesh.katna | Date: | Fri, 16 Mar 2012 17:11:58 +0000 |
| Subject: | note 107957 added to control-structures.if | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-186708@lists.php.net to get a copy of this message | ||
can anyone please help me in the following coding:
if($da1=="yes")
{
if($co1=="M.Phil or equivalent")
{
$api= 3;
}
elseif($co1=="M.Phil or equivalent" && $ts1=="Yes")
{
$api= 10;
}
elseif($co1=="Ph.D or equivalent")
{
$api= 10;
}
elseif($co1=="Ph.D or equivalent" && $ts1=="Yes")
{
$api= 17;
}
}
in this i want to move the value of $api into the database..but the if else statement doesn't
work..i think because of the sentence type value of $co1..but i want these values as it is..i mean
that i cant change "PH.D or equivallent" value because this value has to be passed in the
databse as it is..so please help me anysolution for this.
----
Server IP: 69.147.83.197
Probable Submitter: 122.173.82.92
----
Manual Page -- http://www.php.net/manual/en/control-structures.if.php
Edit -- https://master.php.net/note/edit/107957
Del: integrated -- https://master.php.net/note/delete/107957/integrated
Del: useless -- https://master.php.net/note/delete/107957/useless
Del: bad code -- https://master.php.net/note/delete/107957/bad+code
Del: spam -- https://master.php.net/note/delete/107957/spam
Del: non-english -- https://master.php.net/note/delete/107957/non-english
Del: in docs -- https://master.php.net/note/delete/107957/in+docs
Del: other reasons-- https://master.php.net/note/delete/107957
Reject -- https://master.php.net/note/reject/107957
Search -- https://master.php.net/manage/user-notes.php