toasty525 Posted July 4, 2007 Share Posted July 4, 2007 can anyone suggest a way of dissplaying a table of links from a mysql table but not display a link if a value is preasent in a colum of the mysql table ? thanks for your time. Quote Link to comment Share on other sites More sharing options...
redarrow Posted July 4, 2007 Share Posted July 4, 2007 show links where a secuity number of 1 is set ok. <?php // database connection $query="SELECT `links' , `secuity` FROM `what_ever' WHERE `secuity`= 1"; $result=mysql_quert($query)or die("mysql_error()"); while($x=mysql_fetch_assoc($result)){ echo $x['links']; } ?> 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.