RSS Feed/News How to check if two values match

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,724
Points
823

Reputation:

I have a table like this:

usernameoption
user1X
user1Y
user1Z

I can check if values exists separately (like below), but how can I check if both columns values exists in the same row?
e.g. I want to check if the set user1 and option Y match.

Code:

Code:
$username = $this->filter('username', 'str');
$username_exists = $this->assertUsernameExists('FOX\MyApp:Class', $username);

if...

Read more

Continue reading...
 
Status
Not open for further replies.
Top