Darvin Andrioli wrote:
-Messaggio originale-
Da: Alf Stockton [mailto:[EMAIL PROTECTED]
Inviato: lunedì 12 settembre 2005 17.45
[...]
So my code reads:-
if(($rs = TRUE)) {
^^^
Is it your code or do you forget many "=" in the example?
It should be if(($r
Darvin Andrioli wrote:
-Messaggio originale-
Da: Alf Stockton [mailto:[EMAIL PROTECTED]
Inviato: lunedì 12 settembre 2005 17.45
[...]
So my code reads:-
if(($rs = TRUE)) {
^^^
Is it your code or do you forget many "=" in the example?
It should be if(($rs === TRU
> -Messaggio originale-
> Da: Alf Stockton [mailto:[EMAIL PROTECTED]
> Inviato: lunedì 12 settembre 2005 17.45
[...]
> So my code reads:-
>
> if(($rs = TRUE)) {
^^^
Is it your code or do you forget many "=" in the example?
It should be if(($rs === TRUE))
Darvin
--
PHP
I am apparently misunderstanding the mssql_query entry in the manual.
The manual reads:-
Returns: A MS SQL result resource on success, *TRUE* if no rows were
returned, or *FALSE* on error.
From that I believe that if I test result for TRUE I should report a no
data available and if FALSE disp
Mark Rees wrote:
Please suggest what I have done wrong with the following lines of php:-
$MachineNum = $_POST['led']; // led is the variable in the html that
For some reason, despite what was in the html, I had to use $_GET
Problem solved, thanks for the help.
--
Regards,
Alf Stockton
You are welcome
-Original Message-
From: Mark Rees [mailto:[EMAIL PROTECTED]
Sent: segunda-feira, 12 de Setembro de 2005 15:21
To: php-windows@lists.php.net
Subject: Re: [PHP-WIN] Re: Not getting correct results from $_POST
Please use reply-all to make sure that your message goes to the
Please use reply-all to make sure that your message goes to the list
- Original Message -
From: "Luis Moreira" <[EMAIL PROTECTED]>
To: "'Mark Rees'" <[EMAIL PROTECTED]>
Sent: Monday, September 12, 2005 3:15 PM
Subject: RE: [PHP-WIN] Re: Not getting correct results from $_POST
> Mark,
>
>
> Please suggest what I have done wrong with the following lines of php:-
>
> $MachineNum = $_POST['led']; // led is the variable in the html that
calls this php
>
> $SQL = sprintf("select a_date, a_time, amnt from register where mac_name
> = %s and message_id = 34 or message_id = 35 order by a_d
Please suggest what I have done wrong with the following lines of php:-
$MachineNum = $_POST['led']; // led is the variable in the html that calls
this php
$SQL = sprintf("select a_date, a_time, amnt from register where mac_name
= %s and message_id = 34 or message_id = 35 order by a_date des
Hello
This doesn't make much sense, no. One minute it's a hidden form input on a
page which isn't a form, then it's a session variable, then it's a cookie!
Your problem is that you have a variable which you need to pass from the ASP
to PHP page, isn't it? Ignoring what you are doing at the momen
10 matches
Mail list logo