[snip] I am a first time databaser and am having trouble pulling information from a database to display on a site. Not every entry is supposed to show up on the web page, but does so. I have tried IF statements without any help. Here is what I have so far:
$r1="SELECT * FROM $main_tbl"; [/snip] You need to learn some basic query skills, limit the request in the SQL query. For instance... $r1="SELECT * FROM $main_tbl WHERE firstName = 'John' "; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php