2 Topics

Member Avatar for
Member Avatar for SoMa_2

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"); …

Member Avatar for coreyavis
0
188
Member Avatar for SoMa_2

I'm trying to do something like this $level=0; if($a=="x"){ $level=1; } Else{ $level=2;} How I can use the new value of $level outside the scope of IF Statement

Member Avatar for cereal
0
151

The End.