Jump to content

help!


General Kane

Recommended Posts

You'll get more replies if your subject line is more descriptive.

 

To make sure I understand correctly: You have a column in your table (Let's call it "Notes") that you use to label some members with the text "special." You want to select only those "special" members, and loop through them.

 

The query would look like this:

 

$query = mysql_query("SELECT * FROM Members WHERE Notes='special' ")

 

This will return all the members marked "special". You can then fetch the array and loop through it as you would anything else.

Link to comment
https://forums.phpfreaks.com/topic/184016-help/#findComment-971551
Share on other sites

'group'=Kanes Dwarfs'"

should be

`group`='Kanes Dwarfs'"

 

Notice the difference in 'group' and `group`.  This is required since group is a reserved MySQL word.  Otherwise you could just have group by itself without any quotes

and also.. Kanes Dwarfs needs to be surrounded with the regular quotes..

Link to comment
https://forums.phpfreaks.com/topic/184016-help/#findComment-971592
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.