Re: Managing Multiple Conditions in a MySQL Query

From: Date: Wed, 02 May 2001 13:28:09 +0000
Subject: Re: Managing Multiple Conditions in a MySQL Query
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-51141@lists.php.net to get a copy of this message
Thanks Tomasz, I believe that this will work just fine! :) Mike Tomasz Abramowicz wrote:
<? echo "<p>Recent Signatures\n<br><em><UL>"; $query = "SELECT FirstName,LastName,CityState FROM phPetition WHERE Public='yes' AND Verified='yes' ORDER BY ID DESC LIMIT 0,5"; $result = mysql_query( $query )
    or die("never expect your query to work: $query");
while ( $row = mysql_fetch_array( $result ) ) {
    echo "<LI>" . stripslashes($row["FirstName"]) . " " .
stripslashes($row["LastName"]) . " from " . stripslashes($row["CityState"]); }
-- Mike Gifford, OpenConcept Consulting, http://openconcept.ca Offering everything your organization needs for an effective web site. Featured Client: http://rabble.ca - News For the Rest of Us! Courage my friends, 'tis not too late to make a better world - T. Douglas

« previous php.general (#51141) next »