mypoint Posted November 19, 2010 Report 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
briedis Posted November 19, 2010 Report Posted November 19, 2010 RTFM http://php.net/manual/en/control-structures.if.php Quote
daGrevis Posted November 19, 2010 Report Posted November 19, 2010 Šādi... if( $username === 'daGrevis' ) { echo 'Tu redzi tekstu!'; } Quote
mypoint Posted November 19, 2010 Author Report Posted November 19, 2010 Paldies daGrevi un briedi. Viss sanāca. Quote
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.