Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
$row = mysql_query("select mog from dle_users where name = '$login'");
$myrow = mysql_fetch_array($row );
// вывод
echo $myrow['mog'];
$row = mysql_query("select mog from dle_users where name = '$login'",$db);
and what is the "conclusion"? You made a query to the database, then "compared" the result with '0'.
why "compared" - "=" is an assignment. comparison is "==" or "===". ($row = '0') is always true.
next, you updated the dle_user table by increasing the value of the money field by 1 for fields where name = $login.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question