Yestery day I got help from several of you on my function.
I tried to get complicated today and so here it is.
I am working on a peice of code where if a condition of a
database entery is 0 then it will take you to one page if it is
one it will take you to another page.
Here is the function:
On Tuesday, October 28, 2003 8:50 AM Frank Tudor wrote:
$query=SELECT payment FROM payment WHERE
dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and
users.password='.$_POST[password].';
Okay, there seem to be a few problems here.
The first issue is:
users.password
Using this means you are
[snip]
$query=SELECT payment FROM payment WHERE
dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and
users.password='.$_POST[password].';
[/snip]
Breaking the above apart ...
$query=
SELECT payment
FROM payment
WHERE dln='.$_POST[dln].'
= payment.dln='.$_POST[dln].'
and
I didn't look into your problem, but I want to mention one thing that stands
out to me.
--- Frank Tudor [EMAIL PROTECTED] wrote:
$query=SELECT payment FROM payment WHERE
dln='.$_POST[dln].' = payment.dln='.$_POST[dln].' and
users.password='.$_POST[password].';
Never, ever build an SQL query
4 matches
Mail list logo