Well from a Coldfusion perspective... it's extremely easy.

In the Coldfusion administrator you set up a "Datasource" to your mySQL 
Database. CF comes with a mySQL driver out of the box, all you do is 
give it a name (eg mySQLDS), server, port, username, pw, etc...

then in CF you make a file called a CFC (Coldfusion Component), which is 
just a text file and looks something like this in a very basic sense:

mycomponent.cfc
<cfcomponent>
  <cffunction name="getData" returnType="query" access="remote">
     <cfquery name="myQuery" datasource="mySQLDS">
        SELECT * from whatever
      </cfquery>
      <cfreturn myQuery>
   </cffunction>
</cfcomponent>

Then in Flex...
<mx:RemoteObject ... source="mycomponent">
  <mx:Method name="getData" ..... />
</mx:RemoteObject>

And that cfc can also be a webservice as the same time just by basically 
switching mx:RemoteObject to mx:WebService.

 From a PHP perspective, this article may help 
http://webservices.xml.com/pub/a/ws/2004/03/24/phpws.html



pioplacz wrote:

>That I know cause at the moment I use PHP to output all the data 
>from mysql and show it in XML. But thinking of using some other 
>technology like webservices. But don't really know how to create 
>them? Can you maybe explain a little how is all works and what would 
>be the easiest way to use. 
>
>  
>





------------------------ Yahoo! Groups Sponsor --------------------~--> 
<font face=arial size=-1><a 
href="http://us.ard.yahoo.com/SIG=12hhin9nn/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1125005149/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOO&cmpgn=GRP&RTP=http://groups.yahoo.com/";>In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!</a>.</font>
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to