How to do the following query in prepare statement

Hey guys!

How do you do the following query with prepare statement? Can i use the less than sign?

$admin = $row['admin'] + 1;
              	$sql2 = "SELECT * FROM forum_cats WHERE admin < ?;";

              	$stmt = mysqli_stmt_init($conn);
		        if(!mysqli_stmt_prepare($stmt, $sql)) {
		           echo "SQL error";
		        } else {
		          mysqli_stmt_bind_param($stmt, "i", $admin);

That’s the way to do it, you just forgot

mysqli_stmt_execute($stmt);

I actually have got the execute query but I meant, can I have the less than sign there in the query?

Sure, basically a normal query just with question marks