From: "Jason T. Davidson" <[EMAIL PROTECTED]>

> 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";

You need a WHERE clause to indicate any conditions that selected rows must
satisfy

http://www.mysql.com/doc/en/SELECT.html

SELECT * FROM $main_tbl WHERE code = 'a' OR code = 'b' OR something > 1

for example.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to