Mailing List Archive



Back to the month index Back to the list index

Bryan Hahn (hahnbc@uwec.edu)
Tue, 20 Apr 1999 08:01:11 -0500


Message-Id: <3.0.1.32.19990420080111.0096cd60@uwec.edu>
Date: Tue, 20 Apr 1999 08:01:11 -0500
From: Bryan Hahn <hahnbc@uwec.edu>
Subject: Re: syntax please !

I think it will work if you do it in the statement before, for instance:

$j = $deb + 1;
msql($base, "UPDATE $tableC SET $j WHERE ident = '$dest'");

php automatically tries to handle conversion for you, which sometimes
results in unexpected values.

Bryan Hahn

At 05:37 AM 4/22/99 -0400, you wrote:
>Hi,
>
>With php2 and msql, I don't arrive to add 1 to a variable.
>
>I make :
>
> msql($base, "UPDATE $tableC SET deb = deb + 1 WHERE ident =
>'$dest'");
>
>But "deb = deb + 1" if not good :-(
>I want add 1 to "deb".
>
>Can you help me please ?
>
>Thanks.
>Patrick
>
>