Hello,
I have a query $sqlStr4
that "selects" these fields from a MySQL database:
loginid
username
created
The query $sqlStr4
is limited to 10 rows / results.
I also have the following variable:
$u = $_SESSION['username'];
I would like to assign another variable $topten
a value of 1 if $u
equals any of the ten username
fields returned by the query $sqlStr4
, and a value of 0 if it does not.
How can I do this?
Thanks in advance,
John