I'm trying to determine the value of $level based on the keyword user provide using If statement
but whatever was the user entry the value of $level always giving as 1
this is my code I need your help to find the error
<?php
$q1 = $_GET['q1'];
$con = mysqli_connect("localhost","FYP","123","FYP");
if (!$con) {
die('Could not connect: ' . mysqli_error($con));}
mysqli_select_db($con,"ajax_demo");
if ($q1=="Cite"||"Define"||"Enumerate"||"Index"||"Indicate"){
$level=1;}
elseif($q1=="Add"||"Approximate"||"Articulate"||"Associate")
{
$level=2;
}
elseif($q1=="Acquire"||"Adapt"||"Allocate"||"Alphabetize")
{
$level=3;
}
elseif($q1=="Analyze"||"Analyse"||"Audit"||"Blueprint"||"Breadboard" )
{
$level=4;
}
elseif($q1=="Abstract"||"Animate"||"Arrange"||"Assemble" )
{
$level=5;
}
elseif($q1=="Appraise"||"Assess"||"Conclude"||"Counsel")
{
$level=6;
}
else{$level=0;}
echo $level;
?>