Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.