K
K
kiril90112018-01-27 23:06:30
PHP
kiril9011, 2018-01-27 23:06:30

How to write the condition correctly?

if(!empty ($row[password]=1234568))

It is necessary to make it so that if the password variable, which is in the database, has a value of 12345678, then it writes one thing, and if it is different, then it writes another, like this equated does not work, how to pee correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2018-01-27
@kiril9011

if($row[password] == '1234568') {
// code
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question