RE: [PHP] Re: query to display the results without...
| From: | Chris W. Parker | Date: | Mon, 08 Dec 2003 23:25:13 +0000 |
| Subject: | RE: [PHP] Re: query to display the results without... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-172187@lists.php.net to get a copy of this message | ||
Eric Holmstrom <mailto:eric@rocketind.com>
on Monday, December 08, 2003 3:06 PM said:
> How do i make it so if i type
> http://localhost/test.php?partno=5r&description=copper
$partno = $_GET['partno'];
$description = $_GET['description'];
$sql = "
SELECT partno
, description
, comment
FROM Eric
WHERE partno = '$partno'
AND description = '$description'
";
// execute your sql query
HTH,
Chris.
--
Don't like reformatting your Outlook replies? Now there's relief!
http://home.in.tum.de/~jain/software/outlook-quotefix/