Tell me how to do it (preferably with a shorter method) so that the status update script is loaded only if $myrow[id]=$_SESSION[id]; if not equal, then only the status itself was loaded?

  • Conditional statements - Oleg
  • one
    Please throw an example where you can see their use if you need to use them here. Thank you! - OverLoader
  • @ raptor96, is it not easier to enter into Google "php conditional operators" than to wait for a response on the forum? - Oleg Arkhipov

1 answer 1

 if ($_SESSION['id'] == $myrow['id']) { // Запрос }else{ // Запрос }