Re: [flexcoders] Flex PHP Service with Date Parameters Help

2010-08-27 Thread claudiu ursica
I am not sure where your problem is in the php code. However if you think the 
date is the issue use timestamps which are basically numbers. I did that 
successfully in the past. On the flex side you can write an utility for 
translating that into a date for display purposes. 

Which line is 61 in your code anyway ?

C





From: Stephen 
To: flexcoders@yahoogroups.com
Sent: Fri, August 27, 2010 12:27:57 AM
Subject: [flexcoders] Flex PHP Service with Date Parameters Help

   
I'm having some trouble using the Date as a Parameter does anybody know where 
I'm going wrong as I am currently getting the error: 

Reason: 
Fatal error: Call to a member function toString() on a non-object in 
C:\wamp\www\testing-debug\services\TestingService.php on line 61
mysqli_stmt_bind_param($stmt, 'ss', $from->toString('-MM-dd'), 
$to->toString('-MM-dd'));

public function getAllTestingByRange($from, $to) {

$stmt = mysqli_prepare($this->connection, "SELECT name_no, SUM(amount) AS total 
FROM $this->tablename WHERE datefield BETWEEN ? AND ? GROUP BY name_no"); 

$this->throwExceptionOnError();

mysqli_stmt_bind_param($stmt, 'ss', $from->toString('-MM-dd'), 
$to->toString('-MM-dd')); 

$this->throwExceptionOnError();

mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();

$rows = array();

mysqli_stmt_bind_result($stmt, $row->name_no, $row->total);

while (mysqli_stmt_fetch($stmt)) {
$rows[] = $row;
$row = new stdClass();
mysqli_stmt_bind_result($stmt, $row->name_no, $row->total);
}

mysqli_stmt_free_result($stmt);
mysqli_close($this->connection);

return $rows;
}


 


  

RE: [flexcoders] flex php login

2008-07-15 Thread Kenneth Sutherland
I'd do something like the following, I've added in a time parameter, it
will make sure that your request is unique and it should help stop IE
from not sending your request. 

 

 

  

  {new Date().getTime()}

{emailaddress.text}

{password.text}

  

  

 

 

In the php I'd to the following

 

mailto:[EMAIL PROTECTED] On
Behalf Of nitishdhar
Sent: 15 July 2008 07:38
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex php login

 


I m creating my login page in loginpage.mxml but the values are not
getting
sent to the php page login.phpplz help

loginpage.mxml
---

http://www.adobe.com/2006/mxml"; xmlns="*"
layout="absolute">
http://localhost/mixbook/login.php";
useProxy="false" method="POST">

{emailaddress.text}
{password.text}





































login.php
-

-- 
View this message in context:
http://www.nabble.com/flex-php-login-tp18458605p18458605.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 

Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

Re: [flexcoders] flex php login

2008-07-15 Thread Sid Maskit
I only took a quick glance, but I don't see a click event handler being set for 
your "Login to Mixbook" button. So far as I can tell, nothing is set to happen 
when the button is clicked.



- Original Message 
From: nitishdhar <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, July 14, 2008 11:38:24 PM
Subject: [flexcoders] flex php login



I m creating my login page in loginpage.mxml but the values are not getting
sent to the php page login.php... .plz help

loginpage.mxml
 - --

http://www.adobe. com/2006/ mxml" xmlns="*"
layout="absolute" >
http://localhost/ mixbook/login. php"
useProxy="false" method="POST" >

 {emailaddress. text}
{password .text}





































login.php
 -

-- 
View this message in context: http://www.nabble. com/flex- php-login- 
tp18458605p18458 605.html
Sent from the FlexCoders mailing list archive at Nabble.com.




  

Re: [flexcoders] Flex,PHP ,PHPAMF(OR WEBORB) and Cairngorm Demo links need

2008-05-12 Thread Rick Schmitty
That is a really good set of links you have stored in those pages
Douglas, thanks for sharing!

On Mon, May 12, 2008 at 12:51 AM, Douglas McCarroll
<[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> http://www.brightworks.com/technology/adobe_flex/cairngorm.html
>
> http://www.brightworks.com/technology/adobe_flex/with_php.html
>
> http://www.brightworks.com/technology/adobe_flex/code.html
>
> Also, I invite you to attend the Boston Flex Application Incubator Group
> online, most Monday evenings:
>
> http://www.bfaig.org
>
> Douglas
>
>
> On Mon, May 12, 2008 at 12:18 AM, markflex2007 <[EMAIL PROTECTED]>
> wrote:
>
> >
> >
> >
> >
> >
> >
> > I plan to develop a Flex,PHP and Cairngorm application.
> >
> > But I do not have a idea about that.Please help.Thanks
> >
> > Mark
> >
> >
>
>  


Re: [flexcoders] Flex,PHP ,PHPAMF(OR WEBORB) and Cairngorm Demo links need

2008-05-12 Thread Douglas McCarroll
http://www.brightworks.com/technology/adobe_flex/cairngorm.html

http://www.brightworks.com/technology/adobe_flex/with_php.html

http://www.brightworks.com/technology/adobe_flex/code.html

Also, I invite you to attend the Boston Flex Application Incubator Group
online, most Monday evenings:

http://www.bfaig.org

Douglas

On Mon, May 12, 2008 at 12:18 AM, markflex2007 <[EMAIL PROTECTED]>
wrote:

>   I plan to develop a Flex,PHP and Cairngorm application.
>
> But I do not have a idea about that.Please help.Thanks
>
> Mark
>
> 
>


Re: [flexcoders] Flex & PHP

2008-04-02 Thread Aaron Miller
You can set

var postVars:URLVariables = new URLVariables();
postVars.someVars = 'foo';

URLRequest.method = 'POST':
URLRequest.data = postVars:

Then navigate to your request.

Best Regards,
~Aaron

On Wed, Apr 2, 2008 at 11:53 AM, David C. Moody <[EMAIL PROTECTED]>
wrote:

>   Hi guys,
>
> Using Flex 3 & AMFPHP to do my database operations.
>
> I have a report that you specify all the options in flex, and
> currently I'm just using a navigateToURL() function to open a web
> browser.
>
> I do not like this it is very unsecure as the variables are all
> passed in the URL string.
>
> How can I get around this? I've thought about creating an
> intermediate database that houses all the variables and then have a
> random number generated and only pass that random number so that the
> PHP script can then pull that record from the database and get the
> variables it needs.
>
> There's got to be an easier way to do this though? How can I make
> this where the user can't change the variables and run a different
> report. Is there a way to share variables between Flex & PHP without
> putting them in the URL? Cookies maybe?
>
> Thanks for any help!
> -David
>
>  
>



-- 
Aaron Miller
Chief Technology Officer
Open Base Interactive, LLC.
[EMAIL PROTECTED]
http://www.openbaseinteractive.com