At 9:49 PM -0500 5/24/01, Tim Thorburn wrote:
>Hi,
>
>I'm using PHP to pull information out of my MySQL database -
>although its not entirely working.
>
>Here is the line:
>
>$result = mysql_query("SELECT * FROM comcal2001 WHERE id=$id and
>EventMonth='May'",$db);
>
>What I'd like this to do is select all the fields in my database
>where the month = May and display them on the screen. However, it
>displays every field.
The line above doesn't display anything. You're describing a problem that
doesn't relate to the code you're showing, as far as I can tell. Can you
be more specific? PHP won't display anything except what you tell it to...
>
>Could someone shed some light on this for me?
>
>Thanks
>-Tim
--
Paul DuBois, [EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php