MySQL Forums
Forum List  »  General

Re: Multiple 'where' statements?
Posted by: Chris Matthews
Date: January 20, 2005 11:00AM

If you're using PHP as well, try the encoding and decoding functions for this...
<?
$url=urlencode("where Vendor=TNG and ProdCC like 150");
?>

<a href="second_page.php?where=<?echo $url?>">

Then, on second_page.php:

<?
$where=urldecode($_GET['where']);
$query="select * from table ".$where;
?>

And then run your sql query...

There are some annoyance with reserved characters, etc. when passing through the URL.

Options: ReplyQuote


Subject
Written By
Posted
January 19, 2005 03:37PM
Re: Multiple 'where' statements?
January 20, 2005 11:00AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.