Using WHERE in the SELECT Statement

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Sat Mar 01, 2003 12:52 am

Code: Select all

$result = mysql_query('SELECT artist,extra1,type FROM artist WHERE type = "'.$genre.'" ORDER BY artist asc',$db); 


try that.

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Post by Redcircle » Sat Mar 01, 2003 1:18 pm

:) I am soooo good.. i think I will change my nick to phpgod.

Post Reply

Who is online

Users browsing this forum: AdoptiveSolution and 5 guests