Jump to content

[SOLVED] IF question


johnwayne77

Recommended Posts

how can i put 2 conditions in one IF command?

 

something like this:

 

else

{

if($row['cnp'] == $_cnp || $row['parola'] == $_parola) <---

{

$_SESSION['logged'] = "agk8gjf38834j2";

$_SESSION['user'] = $_utilizator;

 

 

I don't think the || works as the app is not checking both fields..

 

Any ideas? thanks

Link to comment
https://forums.phpfreaks.com/topic/58286-solved-if-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.