[snip]
$query="SELECT payment 
FROM payment 
WHERE payment.dln='".$_POST["dln"]."' 
= users.dln='".$_POST["dln"]."' 
and payment.payment='".$_POST["payment"]."'";

Will this work?
[/snip]

Aside from what Chris said (excellent advice!) the query above will not
work because the 4rth line 

= users.dln='".$_POST["dln"]."' 

has no conditional on it. In other words you cannot say

WHERE foo=foo=bar=bar

you need to say

where foo=foo
and bar=bar
and payment=paypment

Other than that this is bad for the reasons Chris stated.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to