Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Alf Stockton
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

Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread M. Sokolewicz
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

Re: [PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Darvin Andrioli
> -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

[PHP-WIN] Misunderstanding mssql_query in the manual

2005-09-12 Thread Alf Stockton
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

Re: [PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Alf Stockton
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

RE: [PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Luis Moreira
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

Re: [PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Mark Rees
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, > >

[PHP-WIN] Re: Not getting correct results from $_POST

2005-09-12 Thread Mark Rees
> 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

[PHP-WIN] Not getting correct results from $_POST

2005-09-12 Thread Alf Stockton
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

Re: [PHP-WIN] Re: ASP to PHP

2005-09-12 Thread Mark Rees
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