A
A
alpa12019-01-28 22:40:37
PHP
alpa1, 2019-01-28 22:40:37

How to check result of sql query?

I need to execute the code in the if statement below if the result of the $res query returns true.
Is it possible to do so? Or do you need to do fetch_array?

if ($res=$actual_data->query ("SELECT '$key' FROM `$upTables[$t]` WHERE stID='$sessionIDs[$id]' AND '$key'!='$value'")){
}

Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur K., 2019-01-28
@amark

Something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question