PHP if/else retarded moment?
I have a code that I need to program
if (BBP!='00-00-00 00:00:00') echo 'YOU HAVE COMPLETED'; else 'YOU HAVE NOT COMPLETED';?>
this information is being pulled via a table called net_users I already have connected. However it is still not working.
1 Answer
Relevance
- Anonymous1 decade agoFavorite Answer
Conditional statements need brackets. Try this:
if (BBP!='00-00-00 00:00:00') {echo 'YOU HAVE COMPLETED';} else {echo 'YOU HAVE NOT COMPLETED';}
Still have questions? Get your answers by asking now.