Actually, I am kind of confused.. =P ...why wouldn't SELECT * FROM table
WHERE (artist_id = '$id') work?

David Balatero

-----Original Message-----
From: Matt Nigh [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 22, 2001 6:30 PM
Subject: [PHP-DB] php/mysql query

hi. i was wondering if the knowledgeable people on this list could help me
out with a problem i'm having.
what i need is this:
i want a single page that with a variable taken from a database, will
display a different page depending on the name of a band.

'artist' being the column from the database and 'thebandsname' being a
specific row in the 'artist' column

so basically what i need is some kind of statement sorta like this:
<--- start --->

if(isset($id)) {
else {
echo "please specify a band";

<--- end --->

but instead of including a file, i wanna include a row from a specific
column, a little like
select * from table where artist = 'thebandsname'

so if anyone could help me with this or point me in the right direction, i'd
be very appreciative. also, if you don't understand what i mean, please feel
to ask and i'll try and explain a little better.

thanks in advance,

Matt Nigh

PHP Database Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to