hi...
i am tryin to connect my flex to mysql db using amfphp.....i just
tried to write a simple php class with 2 methods in it...then i
followed it up by placing the same in my service folder which is
placed within the amfphp folder which in turn is placed in my htdocs
folder(apache server).....i got the followin error when i tested tht
on my browser as a localhost (http://localhost/amfphp/browser/).......


error:::::::::::::::::::::::::


Service: FirstService


Error retrieving service info:

Invalid AMF message

Warning: Unexpected character in input:  '\' (ASCII=92) state=1 in C:
\xampp\htdocs\amfphp\services\gotoandlearn.php on line 2

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs
\amfphp\services\gotoandlearn.php on line 2





here is my php code for gotolearn.php:::::::::


<?php
class gotoandlearn
{
    public  function  __construct()  //this is a constructor//
  {
   mysql_connect("localhost","root","password");
   mysql_select_db("db_name");
   }

/**
*retreives  data from db_name
 *...@results in lname fname and age
*/

    function gettutorials()
   {
    return mysql_query("select * from table_name");
   }

}

?>



can anyone help me out with this?

thanks :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to