mypoint Posted November 19, 2010 Report Share Posted November 19, 2010 (edited) Esu iestrēdzis pie tā, lai konkrētu tekstu rāda tikai konkrētam cilvēkam. Ja tu esi cilvēks X, tad tu vari redzēt tekstu S . Ja tu nēsi X cilvēks, tad tu teksta S vietā redzi tukšumu. IF / ELSE cik noprotu! Ar šo funkciju $session->username attēlo lietotājvārdu. Tad kaut kā if $session->username cilvēks X true teksts S false TUKSUMS Tikai, kā to kopā salikt? Edited November 19, 2010 by mypoint Quote Link to comment Share on other sites More sharing options...
briedis Posted November 19, 2010 Report Share Posted November 19, 2010 RTFM http://php.net/manual/en/control-structures.if.php Quote Link to comment Share on other sites More sharing options...
daGrevis Posted November 19, 2010 Report Share Posted November 19, 2010 Šādi... if( $username === 'daGrevis' ) { echo 'Tu redzi tekstu!'; } Quote Link to comment Share on other sites More sharing options...
mypoint Posted November 19, 2010 Author Report Share Posted November 19, 2010 Paldies daGrevi un briedi. Viss sanāca. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.