Other Zortin Services
HTML codes
|
PHP codes
|
JAVASCRIPT codes
|
CSS codes
|
Code generators
|
Tools
|
Tutorials
|
Myspace version1 codes
|
HI5 codes
|
IMVU codes
|
Page backgrounds
Zortin, Exclude something when displaying results
Exclude something when displaying results
Category:
php
Keywords:
Exclude something
Added by:
Anonymous
Usage:
Copy & paste (Zortin offers codes for your Website, Blog, Profile, Myspace, Friendster, Hi5, Bebo, IMVU, Xanga, etc...)
The Code
while($r = @mysql_fetch_array($res)) { if ($r['town'] != 'London'){ echo $r['Town']; } }
Explenation
The code will exclude London from the towns to be shown
if ($r['town'] != 'London'){
Towns go here
}
«
Back to PHP category