Using WHERE in the SELECT Statement

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Postby 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:

Postby Redcircle » Sat Mar 01, 2003 1:18 pm

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


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests