equality help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
okok2
Forum Newbie
Posts: 2
Joined: Fri Aug 13, 2010 1:17 pm

equality help

Post 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;
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: equality help

Post by buckit »

Code: Select all

if($myText == $mm){
    include("final.php");
}
okok2
Forum Newbie
Posts: 2
Joined: Fri Aug 13, 2010 1:17 pm

Re: equality help

Post by okok2 »

thanks
Post Reply