God, please help me figure out what's wrong.
P粉726632954
P粉726632954 2022-06-23 23:40:00
0
5
1081

<?php $var=22; ?><?phpif ($row['zt']>"0") { echo "222";} else { echo "111";}?> ;

# Why does it display 111 when running like this? It should be 222. That's the mistake.

P粉726632954
P粉726632954

reply all(3)
autoload
<?php
$ddd=11;
if ($ddd >11) 
echo "222";
else echo "111";
?>

That’s it

P粉726632954

<?php $ddd=22; ?><?phpif ($row['ddd']>11) { echo "222";} else { echo "111";}?>you OK, brother, I want to display 222 if ddd>11, how to write it. Ask for advice.

autoload

Your idea is weird, why is it the string "0"?

If comparing strings, the basis is the size of the ASCII code value of the characters from left to right in the string

And who knows what your $row['zt'] is? , I wrote two pieces of unrelated code. If I run it directly, I will definitely get an error of undefined variable

  • reply It’s a comparison of numbers. How should we write the numbers?
    P粉726632954 author 2022-06-24 14:44:07
  • reply Hello, brother, I want to display 222 if ddd>11, how to write it. Ask for advice.
    P粉726632954 author 2022-06-24 14:57:57
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template