How to read a database?

I'm trying to figure out how to read a MYSQL database with as3 and php.. I can't find any tutorials for this.
So if anyone could help me, that would be great.

You'll need to find a tutorial for processing a Flash form.  A reasoned search on Google should produce results--something like "AS2 form PHP tutorial" might work.
But in this case it is not necessary to return data from the database, only to have a PHP file check for the user data in the database and return a yea or nay vote.
So you'll submit the form data thru a php file, and have the php file query the database for the existence of the user data that was submitted.   The php file will echo whether or not the results showed the login data was there or not.

Similar Messages

  • How to read a Database in Teststand 4.0

    Hi,
    My question is how to read a Access Database in Teststand 4.0....
    Writing is not the problem.... but now i want to read a Number into a FileGlobal....
    I've already tested some SQL Statements but they all result in an Error....
    Can somebody give me an example for this Problem?
    Thanks
    Givin´ um something to Rock´n´Roll about

    Chevydevil -
    The first half of the sequence writes the values to the database, the second half reads the values from the database. After the "Close SQL Statement" step in the middle of the sequence, the "Open SQL Statement" step reopens the table using a SELECT statement against the database handle that was used to write the values. The "Start Loop 2" and following "Goto" step setup a loop, and the "SQL Action - Fetch Next" step selects the next record in the query. The "SQL Action - Get Values" step gets values from the current record by mapping the column name to a local variable. The "SQL Action - Get String Value" step shows that you can also request the value of a record separately, in this case a string value.
    The cleanup step group ensures that you properly close the statement and database handles.
    Scott Richardson
    National Instruments

  • How to read Oracle Database as Input using BDC..

    Hello SAP Minds,
    How to read the data from Oracle data base to SAP tables. How can i use directly the Oracle database as input..
    I have to upload the time data  for my client for each of its employee per day. Their clock in and clock out time is recorded in the time maching and finally it gets stored into centralised oracle database, now they want me to  use this centralised database as input and upload the same into SAP.
    For example :
    pernr          time-in            time-out                 begda                   endda
    00001        8.00               18.00                  26-11-2007     26-11-2007

    You can use the database connector (DBCON) to read external databases directly.
    matt

  • How to Read MYSQL database ?

    Dear everybody!
    I have a MYSQL database that I need to read and to import data to SAP/R3 with ABAP .
    I want to know how to connect and READ this database with ODBC driver.
    I've install the ODBC driver at R3 server, but I can't see MYSQL at list of SAPDB on DBCO transaction.
    Somebody can help me?
    Best regards
    Luciano

    if you have a user in the user table in the mysql database with basically only select permissions you can make them able to access form anywhere by using the % symbol in the host column in the user table. using the % as a wildcard which means anything matches.

  • How to read a passward protected excel file with the help of database connectivity tool kit

    hi, i was reading an excel file with the help of database connectivity tool kit in labview 8.0
    i made tabels in the excel file nand made odbc connection and specified the workbbok name.
    now my problem is how to read the same file if i specife a pasword to that excel file ?

    Hi,
    Check out this thread about opening a password-protected Excel file using ActiveX. This should take care of it for you!
    Amanda Howard
    Americas Services and Support Recruiting Manager
    National Instruments

  • How to read the RD Connect Broker DataBase!!!!

    The msdn say there is a RD Connect Broker Data Base , it store the session information,but i dont know where is it and how to read it !
    Thank you !!!!

    Hi,
    You can use the vbs script below to dump the contents of the RD Connection Broker database.
    With credits to the authors of the Windows Server 2008 R2 RDS Resource Kit for putting it in there!
    ' Copyright (c) 2004-2005 Microsoft Corporation
    ' WMI Script - SDDatabaseDump.vbs
    ' Author     - GopiV
    ' This script dumps the contents (clusters and associated sessions)
    ' of the Session Directory database
    ' USAGE: Cscript.exe SDDatabaseDump.vbs <SBservername> <Administrator> <Password>
    const TAB = "    "
    const LINESEPARATOR = "------------------------------------------------"
    ON ERROR RESUME NEXT
    '* Function blnConnect()
    '* Purpose: Connects to machine strServer.
    '* Input:   strServer       a machine name
    '*          strNameSpace    a namespace
    '*          strUserName     name of the current user
    '*          strPassword     password of the current user
    '* Output:  objService is returned  as a service object.
    Function blnConnect(objService, strServer, strNameSpace, strUserName, strPassword)
        ON ERROR RESUME NEXT
        Dim objLocator
        blnConnect = True     'There is no error.
        ' Create Locator object to connect to remote CIM object manager
        Set objLocator = CreateObject("WbemScripting.SWbemLocator")
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in creating a locator object."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
            Exit Function
        end if
        ' Connect to the namespace which is either local or remote
        Set objService = objLocator.ConnectServer (strServer, strNameSpace, strUserName, strPassword)
     if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in connecting to server " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
        objService.Security_.impersonationlevel = 3
        if Err.Number then
            Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred in setting impersonation level " _
                & strServer & "."
            if Err.Description <> "" then
                Wscript.Echo "Error description: " & Err.Description & "."
            end if
            Err.Clear
            blnConnect = False     'An error occurred
        end if
    end Function 
    ' Start of script
    if Wscript.arguments.count<3 then
       Wscript.echo "Script can't run without 3 arguments: ServerName Domain\UserName Password "
       Wscript.quit
    end if
    Dim strServer, strUserName, strPassword
    Dim objService, blnResult
    ' Extract the command line arguments
    strServer=Wscript.arguments.Item(0)
    strUserName=Wscript.arguments.Item(1)
    strPassword=Wscript.arguments.Item(2)
    ' Connect to the WMI service on the SD Server machine
    blnResult = blnConnect( objService, strServer, "root/cimv2", strUserName, strPassword )
    if not blnResult then
       Wscript.echo "Can not connect to the server " & strServer & " with the given credentials."
       WScript.Quit
    end if
    Set clusterEnumerator = objService.InstancesOf ("Win32_SessionDirectoryCluster")
    if Err.Number then
        Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
    end if
    if clusterEnumerator.Count = 0 then
        Wscript.Echo "No clusters found in Session Directory database on " & strServer & "."
        Wscript.Echo
        Wscript.Quit
    end if
    for each clusterObj in clusterEnumerator
        WScript.Echo LINESEPARATOR
        WScript.Echo "ClusterName = " & clusterObj.ClusterName
        WScript.Echo "NumberOfServers = " & clusterObj.NumberOfServers 
        WScript.Echo "SingleSessionMode = " & clusterObj.SingleSessionMode
        Wscript.Echo
        set serverEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectoryServer where ClusterName = '" & clusterObj.ClusterName & "'")
        if Err.Number then
           Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
        end if
        if serverEnumerator.Count = 0 then
             Wscript.Echo "Error : No servers in cluster " & clusterObj.ClusterName
             Wscript.Echo
        else
             ' Enumerate the servers in this cluster
             for each serverObj in serverEnumerator
                WScript.Echo TAB & "SERVER :"
                WScript.Echo TAB & "ServerName = " & serverObj.ServerName & " ServerSingleSessionMode = " & serverObj.SingleSessionMode & " LoadIndicator = " & serverObj.LoadIndicator
    '            WScript.Echo TAB & "ServerIP = " & serverObj.ServerIPAddress
      '  WScript.Echo TAB & "ServerWeight = " & serverObj.ServerWeight
                set sessionEnumerator = objService.ExecQuery("Select * from Win32_SessionDirectorySession where ServerName = '" & serverObj.ServerName  & "'")
                if Err.Number then
                   Wscript.Echo "Error 0x" & CStr(Hex(Err.Number)) & " occurred"
                end if  
                if sessionEnumerator.Count = 0 then
                   WScript.Echo
                   WScript.Echo TAB & "No sessions on server " & serverObj.ServerName
                   WScript.Echo
                else
                   WScript.Echo TAB & "NumberOfSessions = " & sessionEnumerator.Count
                   Wscript.Echo
                   ' Enumerate the sessions on this server
                   for each sessionObj in sessionEnumerator
                      WScript.Echo TAB & TAB & "SESSION :"
                      WScript.Echo TAB & TAB & "UserName= " & sessionObj.DomainName & "\" & sessionObj.UserName & TAB & "ApplicationType= " & sessionObj.ApplicationType
    & TAB & "SessionState= " & sessionObj.SessionState
                      WScript.Echo TAB & TAB & "CreateTime= " & sessionObj.CreateTime & TAB & "DisconnectTime= " & sessionObj.DisconnectTime
    '                  WScript.Echo TAB & TAB & "ServerName= " & sessionObj.ServerName
    '                  WScript.Echo TAB & TAB & "SessionID= " & sessionObj.SessionID
    '                  WScript.Echo TAB & TAB & "ServerIP= " & sessionObj.ServerIPAddress
    '                  WScript.Echo TAB & TAB & "TSProtocol= " & sessionObj.TSProtocol 
     '                 WScript.Echo TAB & TAB & "ResolutionWidth= " & sessionObj.ResolutionWidth
      '               WScript.Echo TAB & TAB & "ResolutionHeight= " & sessionObj.ResolutionHeight
       '             WScript.Echo TAB & TAB & "ColorDepth= " & sessionObj.ColorDepth
        '              WScript.Echo
                      WScript.Echo
                   next
                end if   ' End of sessions on this server
             next
        end if  ' End of servers on this cluster
    next
    Wscript.Echo
    Wscript.Echo
    Wscript.Echo "Dump of SD database on " & strServer & " complete."
    Kind regards,
    Freek Berson
    http://www.microsoftplatform.blogspot.com
    Wortell company website

  • How to read data from database to applet

    hi i am writing a program below which reads data from mysql database successfully ;
    import java.sql.*;
    import java.lang.*;
    import java.util.*;
    public class Read_Capital_country_from_database {
    public static void main (String args[] ){
    int index,mess;
    String country_arr[] = new String[250];
    String capital_arr[] = new String[250];
    int i = 0 ;
    String URL = "jdbc:mysql://localhost/allusers";
    String user = "shadab";
    String password ="shadab@123";
    try {
    Class.forName("com.mysql.jdbc.Driver");
    Connection conn = DriverManager.getConnection(URL,user,password);
    for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
    System.out.println( "SQL Warning:" ) ;
    System.out.println( "State : " + warn.getSQLState() ) ;
    System.out.println( "Message: " + warn.getMessage() ) ;
    System.out.println( "Error : " + warn.getErrorCode() ) ;
    String sql = "select * from country_capital";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while( rs.next() ) {
    System.out.println( rs.getString(1) );
    System.out.println(" " +rs.getString(2) );
    System.out.println();
    catch (SQLException se){
    System.out.println( "SQL Exception:" ) ;
    System.out.println("Exception - raju");
    while( se != null )
    System.out.println( "State : " + se.getSQLState() ) ;
    System.out.println( "Message: " + se.getMessage() ) ;
    System.out.println( "Error : " + se.getErrorCode() ) ;
    se = se.getNextException() ;
    catch( Exception e )
    System.out.println( e ) ;
    java Read_Capital_country_from_database
    OUT PUT OF ABOVE PROGRAM IS :
    INDIA NEW DELHI
    PAKISTAN ISLAMABAD
    AFGHANISTAN KABUL
    BUT SAME PROGRAM WHEN I GO TO WRITE IN APPLET
    THIS TIME APPLET DOES OPEN BUT ERROR SHOWS ON STANDARD OUT PUT
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    THIS IS THE PROGRAM WRITTEN FOR JAVA APPLET
    import java.sql.*;
    import java.lang.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    public class Read_Capital_country_from_database extends Applet {
    Choice country, capital;
    String msg=" ", msg1;
    int index,mess;
    String country_arr[] = new String[250];
    String capital_arr[] = new String[250];
    char chr;
    int i = 0;
    public void init() {
    country = new Choice();
    capital = new Choice();
    String URL = "jdbc:mysql://localhost/allusers";
    String user = "shadab";
    String password ="shadab@123";
    try {
    Class.forName("com.mysql.jdbc.Driver");
    Connection conn = DriverManager.getConnection(URL,user,password);
    for( SQLWarning warn = conn.getWarnings(); warn != null; warn = warn. getNextWarning() )
    System.out.println( "SQL Warning:" ) ;
    System.out.println( "State : " + warn.getSQLState() ) ;
    System.out.println( "Message: " + warn.getMessage() ) ;
    System.out.println( "Error : " + warn.getErrorCode() ) ;
    String sql = "select * from country_capital";
    Statement stmt = conn.createStatement();
    ResultSet rs = stmt.executeQuery(sql);
    while( rs.next() ) {
    country_arr[i] = rs.getString(1);
    country.add(country_arr);
    capital_arr[i] = rs.getString(2);
    capital.add(capital_arr[i]);
    i++;
    catch (SQLException se){
    System.out.println( "SQL Exception:" ) ;
    System.out.println("Exception - raju");
    while( se != null )
    System.out.println( "State : " + se.getSQLState() ) ;
    System.out.println( "Message: " + se.getMessage() ) ;
    System.out.println( "Error : " + se.getErrorCode() ) ;
    se = se.getNextException() ;
    catch( Exception e )
    System.out.println( e ) ;
    add(country);
    add(capital);

    It doesn't make sense to read a database directly from an applet. If an applet needs data from a database is should request if from the server which the applet is located on and the server should do the actual database actions.
    The whole point of applets is that they require no installation on the client machine. If you have to change policy files or the like, you might as well install a Swing application. Furthermore accessing a database tends to depend on how the client is set up on the network. Any sensible network has firewall settings that block access to the database ports to any external access (and, again, if you are limiting the facility to a few internal machines then why not just install a program on them).

  • How to read and upload microsoft word file into database using forms9i

    Hi,
    How to read and upload microsoft word file into oracle database using forms9i. I appretiate if anyone can send me example or atleast a sujjetion.
    Thanks in advance
    Mahesh Ragineni

    The webutil package includes the ability up upload from the client to the database. See otn.oracle.com/products/forms and click on webutil for more details.
    Regards
    Grant Ronald
    Forms Product Management

  • Dbsql version of the database how to read noSQL

    dbsql version of the database how to read noSQL?
    Is there a way to achieve?

    Your question is extremely difficult to understand. However, because you are asking about dbsql, I think you are in the wrong forum. This is the BDB JE forum, and BDB JE does not support sql. The BDB (C-based) product does support sql. Please post your questions to the BDB forum:
    Berkeley DB
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to use Logical database in function module?

    I will create a function module in HR.
    but how to use Logical database  in function module ?  Logical database PNP always show screen.in function (RFC) code , it is a matter.

    You cannot attach the LDB to the main program of the function group.
    - So you may [SUBMIT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=submit&adv=false&sortby=cm_rnd_rankvalue] a report which use the LDB and get back the data (export/import), by default in the syntax of SUBMIT the selection-screen will not be displayed
    - Use [LDB_PROCESS|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=ldb_process&cat=sdn_all], fill a structured table for selection, and get data back in another table
    - Use [HR function modules to read Infotypes|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrfunctionmodulestoread+Infotypes&adv=false&sortby=cm_rnd_rankvalue].
    Regards

  • How to read a whole text file into a pl/sql variable?

    Hi, I need to read an entire text file--which actually contains an email message extracted from a content management system-- into a variable in a pl/sql package, so I can insert some information from the database and then send the email. I want to read the whole text file in one shot, not just one line at a time. Shoud I use Utl_File.Get_Raw or is there another more appropriate way to do this?

    how to read a whole text file into a pl/sql variable?
    your_clob_variable := dbms_xslprocessor.read2clob('YOUR_DIRECTORY','YOUR_FILE');
    ....

  • How to read the contents of attached files

    Hi,
    I am designing a Form using LiveCycle Designer 8.0
    Scenario:
    User can attach the file through "Attachments" facility provided on Adobe  Reader.
    The requirement is to attach 3 documents and post it to SAP system using Web services.
    I am using the following code(which i got from this forum only) to find the number of files user has attached.
    d = event.target.dataObjects;
    n =  d.length;
    xfa.host.messageBox("Number  of Attachments: "+n);
    //Displaying  the names of the Attached files
    for( i =  0; i < n; i++ )
    xfa.host.messageBox("Name  of the file: "+d[i].name);
    My problem: is how to read the contents of the attached files so that I post it to SAP using Web services
    Thanks in advance!!
    Taha Ahmed

    In order to read the content of the Redo Log files, you should use Logminer Utility
    Please refer to the documentation for more information:
    [Using LogMiner to Analyze Redo Log Files|http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/logminer.htm#SUTIL019]
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • How to read accdb and mdb files using JDBC or File Adapter

    Hi,
    How to read and extract the .accdb and .mdb files  from FTP server and parsing into xml  by using FTP or JDBC Adapter in SAP PI7.11 With linx Os.
    Regards
    Upendra

    Hi,
    As per SAP note:1681420 i have to  install the below  driver from Microsoft
    Our SAP PI installed under Unxi OS ,how to install the driver (.exe file) .
    Driver name :AccessDatabaseEngine_x64.exe
    Url:Download Microsoft Access Database Engine 2010 Redistributable from Official Microsoft Download Center
    1681420 - PI : Where to locate the JDBC Driver for Microsoft Access
    Regards
    Upendra

  • How to create a database in ORACLE 8i

    How to create a database in ORACLE 8i

    hello ...
    enter in
    http://www.oracle.com/pls/db102/portal.portal_db?selected=2 between demand and type in "create database"
    or read others docs ORACLE.
    AF

  • How to read a XML file from BLOB column and insert in a table - PL/SQL Only

    Hi,
    To make data load more simple to end user instead placing file on the server and use SQL-LOADER, I came up with new idea that using oracle ebusiness suite attachment functionality. that loads a XML file from local PC to a database column(table is fnd_attachments, default data type is BLOB over here).
    I tried with DBMS_LOB and didnt get around.
    Please can anyone tell me how to read the BLOB column using PL/SQL and store the data in a oracle table. Here's the sample XML file and table structure FYI.
    <?xml version="1.0" encoding="UTF-8"?>
    <dataroot xmlns:od="urn:schemas-microsoft-com:officedata" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Corporate_alloc.xsd" generated="2009-07-07T14:17:49">
    <Corporate_alloc>
    <PKG_CODE>BKCORP</PKG_CODE>
    <PKG_NAME>Corporate Edition - Books</PKG_NAME>
    <DET_CODE>B9780080543758</DET_CODE>
    <DET_NAME>Waves, Tides and Shallow-Water Processes</DET_NAME>
    <ALLOCATION_RATIO>0.000041</ALLOCATION_RATIO>
    </Corporate_alloc>
    <Corporate_alloc>
    <PKG_CODE>BKCORP</PKG_CODE>
    <PKG_NAME>Corporate Edition - Books</PKG_NAME>
    <DET_CODE>B9780080534343</DET_CODE>
    <DET_NAME>Hydrostatically Loaded Structures</DET_NAME>
    <ALLOCATION_RATIO>0.000127</ALLOCATION_RATIO>
    </Corporate_alloc>
    </dataroot>
    CREATE TABLE TEST_XML
    ( PKG_CODE VARCHAR2(50),
    PKG_NAME VARCHAR2(100),
    DET_CODE VARCHAR2(20),
    DET_NAME VARCHAR2(500),
    ALLOCATION_RATIO NUMBER )
    Thanks
    EBV

    In regards to #3, use the COLUMNS functionality of XMLTable instead of using Extract. Two simple examples are
    Re: XML Data - Caliculate fields
    Re: Extractvalue function not recognised

Maybe you are looking for

  • I am trying to reinstall OS X Lion

    So my macbook pro was stuck on the start up screen and because of this I am trying to reinstall OS X Lion so that it can start up. It (Mac OS X Utilties) says that my Macintosh HD and Recovery HD disks are locked. Is there a way to bypass this lock?

  • CSS problem with the clear property

    This is my actual page http://www.martcol.co.uk/abba/ and I want to swap the paragraphs around. This is what I come up with http://www.martcol.co.uk/abba/test/test01.php I reckon I am getting muddle with the whole clearing the float thing. Many thank

  • Create table with storage parameters in a locally managed tablespace

    Hi, Can we create object with storage parameters in a locally managed tablespace. CREATE TABLE my_hash_table_6 ( name VARCHAR2(30), value VARCHAR2(4000) ) STORAGE ( INITIAL 1M NEXT 512K PCTINCREASE 0 MINEXTENTS 2 MAXEXTENTS UNLIMITED ) users default

  • File extension change in bridge

    I recently updated my iphoto to iLife09 (iPhoto 8) and in doing so all of the file extensions in bridge changed from .jpg/.jpg2000 to .approject... i like the viewability of iphoto better than bridge but bridge allows better movement of files... i ha

  • BT6510: does it retain date and time settings afte...

    I am considering replacing my BT Synergy 4500 with a BT 6510. One significant factor is whether the 6510 retains date and time settings afetr a power cut: the Synergy doesn't and resets to 01.01.2000! The manual for the 6510 doesn't mention this and