Page 1 of 1

equality help

Posted: Fri Aug 13, 2010 1:29 pm
by okok2
hello
when i echo for example $mm it will read a text from mysql and print this text very well on the output page,

now i want to use this text, if this text equal to my text ,then include final.php in the page
briefly :
$mm= ...php code to gain text from sql row ;
$mytext = "passed"

and now if these strings are equal , $mytext=$mm , then include final.php

thanks for your help;

Re: equality help

Posted: Fri Aug 13, 2010 1:45 pm
by buckit

Code: Select all

if($myText == $mm){
    include("final.php");
}

Re: equality help

Posted: Fri Aug 13, 2010 1:47 pm
by okok2
thanks