Using WHERE in the SELECT Statement

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

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

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: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Sat Mar 01, 2003 1:18 pm

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests