Im newbie in programmin I want Check if the 2 parameter are correct and display the data
www.site.com/?param1=123¶m2=444 <--- check if param1 and param2 are match and display the account.
On the database it has two same param2 and but different param1.
param1 | param2
123 444 First 122 444 Second
I want to display only the first
$param1 = $_GET['param1'];
$param2 = $_GET['param2'];
$result = mysqli_query($con,"SELECT * FROM tests");
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_array($result)) {
}
}
if ( $param1 ==($param2)){
echo "Display the data all the of first";
}
else{
echo "incorrect parameter;";
}