cntmedia
asked on
true false statement mysql php
Looking for a quick example on how make a php to mysql (true / false) compare.
This would be using a sign up form:
So all the basic stuff I have down (login/sql/query/etc..)
This would be using a sign up form:
So all the basic stuff I have down (login/sql/query/etc..)
I am guessing....example code ;)
// old or new user example //
function oldOrNew (signupID)
{
login into db;
login into myTable ;
//compare the id against the table//
if(userid on myTable == signupID & oldPassword on myTable == newPassword)
{
echo "you already have signed up...but you have uninstalled the application"
echo "please fill out form about what we could have done to make it a better app, and thanks for coming back!"
}
else
{
echo "thanks for signing up"
doSomeFunction();
}
}
// 11223 would be the example var ID to pass to the function //
oldOrNew(11223);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HTH, ~Ray
Open in new window