RE: [PHP] Pulling Certain Data
| From: | Jay Blanchard | Date: | Tue, 06 Apr 2004 19:47:17 +0000 |
| Subject: | RE: [PHP] Pulling Certain Data | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182533@lists.php.net to get a copy of this message | ||
[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' ";