Loging a user in mysql database example

I'm looking for a clear example or a tutorial on loging a user in one database mtSQL.  I don't want an automatic connection as you get with the Flex Builder db Wizard.  What I have is a screen where the user enters a user name and password, and then click a button to connect.  I must be able to manage the user enters is not in the user name or password, which manages the mySQL rejecting the connection.  I've done several serches here both Google and can't find anything I need.  Everyone out there can point me in the right direction?

It's actually a simple thing faily to do... at least I think that's what you try to do based on what you said:

Here is the code to the MXML set up the login of the user interface:


       
       
       
       
       

you need a HTTPService call (which the above send button sends) to the PHP file that will check the credentials of the user against what is in the comic book:

(you mind, I would encrypt the password on the client side too before sending it on the PHP file)


       
            {username.text}
            {password.text}
       

now, the result of the HTTPService goes to a function called checkLogin (event) that is:

Import mx.rpc.events.ResultEvent;

private void checkLogin(evt:ResultEvent):void
{
If (evt.result.loginsuccess == 'Yes') {}
the user is GOOD, do something now
}
If (evt.result.loginsuccess == 'no') {}
mx.controls.Alert.show ("username/password invalid name");
}
}

and to the PHP file, it checks compared to the DB and generates an XML, which is kicking to Flex:

<>

connect to DB however you do, I have a function db_connect() which give the floor

$conn = db_connect();

$username = mysql_real_escape_string($_POST['username']);
$password = mysql_real_escape_string($_POST['password']);

If you have encryption, then make sure you do this here (md5 or other)

also, make sure that do you post the entries for the SQL injection and XSS attacks, but I'm not that cover here

$query = "SELECT * from usertable WHERE username = '$username' AND password = '$password" ";
$result = mysql_fetch_array (mysql_query ($query));

$output = "";

{if(!$result)}

$output. = « no » ;

$output. = "« ;
} else {}

$output. = "yes";

$output. = « » ;

}

print ($output);

?>

Tags: Flex

Similar Questions

  • How to set up the MySQL database to connect from another computer?

    Hello

    I have a huge problem with that.

    What I want to do is:

    I want to create a system (in LabWindows/CVI) this will (among others) allow users to send simple messages to each other. So I want to create a MySQL database , which will be based on a server. Other computers running the system then is able to remotely connect to this database and read a certain table to see if they have new messages. I want that the client computer to connect through the LAN to the database on the server.

    But how can I do this?

    1. How to create a database that can be connected through the LAN?

    2. How my connection string should look like not on the client computer?

    3. What configurations on the client and server computers can I do?

    Any help is appreciated, and if you could suggest how can I do to reach my goal. I'm a very competent programmer, but HATE those network things.

    Thank you

    Umer

    Nothing really associated with LabWindows. Try http://dev.mysql.com/doc/refman/5.7/en/tutorial.html for the database installed and running on a server.

  • Link from Oracle to MySQL database select only one line

    Hello

    I created a connection to the batabase Oracle 11.2 to a MySQL database via a database link. The following statement shows that 35 lines are in the mySQL table:

    SQL > select count (*) from 'main_pages"@MOREWEB;

    COUNT (*)

    ----------

    35

    But a normal select statement only return 1 row.

    SQL > select 'subject' of 'main_pages"@MOREWEB;

    Object

    ------------------------------------------------

    Übersicht: references

    I use the mysql-connector-odbc driver - 3.51.30 - winx64. One is the newer version be installed because on Windows Server 2008 R2, I get an error with a missing dll file. The DataDirect ODBC driver is not possible, because we like to use the MySQL-database free one only support for DataDirect enterprise edition.

    I have also tried to limit the HS_OPEN_CURSORS or do not limit the HS_FDS_FETCH_ROWS, but there is no difference in the result. I always get only one line.

    HS Init.ora

    # This is an example of initialization file of the agent that contains the HS settings

    # necessary for the database to ODBC gateway

    #

    # HS init parameters

    #

    HS_FDS_CONNECT_INFO = moreweb

    HS_FDS_TRACE_LEVEL = WE

    HS_FDS_FETCH_ROWS = 1

    #

    # Required for the non-Oracle system environment variables

    #

    #set < varenv > = < value >

    HS trace file

    Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066

    Heterogeneous Agent release

    11.2.0.1.0

    Oracle Corporation - MITTWOCH 5 November 2014 13:56:22.066

    Version 11.2.0.1.0

    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'ON '.

    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.

    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '1 '.

    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".

    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "

    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.

    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.

    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.

    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.

    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.

    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".

    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.

    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.

    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.

    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.

    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.

    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.

    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.

    using mpgw as the default value to "HS_FDS_DEFAULT_OWNER".

    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.

    SQL text of hgopars, id = 1, len = 36...

    45 00: 53454 C 43542043 4F554E54 282 HAS 2920 [COUNT (*) SELECT]

    10: 46524F4D 20606D 61 696E5F70 61676573 [FROM ' main_pages]

    20: 60204131 [' A1]

    Delayed open until the first fetch.

    Deferred execution open.

    SQL text of hgopars, id = 1, len = 40...

    45 00: 53454 C 43542041 312E6073 75626 has 65 [SELECT A1.' subje(1)]

    10: 63746020 46524F4D 20606D 61 696E5F70 [ct' FROM ' main_p]

    20: 61676573 60204131 [ages A1]

    Delayed open until the first fetch.

    Deferred execution open.

    Please can someone help me.

    Thank you.

    Bianca

    Bianca,

    Everything I've read on this point to a need to install/reinstall the Microsoft Visual C++ Redistributable Package for windows OS 2008.

    You will need to download the appropriate version for your microsoft form system.  There is a lot of information on this topic.  Just

    search on the web, and it should help you in the right direction.

    Thank you!
    Matt

  • Can I manage a Mysql database with dreamweaver CC? Comment if so?

    Can I manage a Mysql database with dreamweaver CC? Comment if so?

    For example, I prepare a registration page and then I can't find how to connect MySQL database in dreamweaver CC pour it works.

    How does it do?

    1. download a new extension manager for CC.  Here is a list of 3, all free.

    Anastasiy extensions Manager

    http://install.anastasiy.com/

    The seven extensions of the project manager

    http://www.Projectseven.com/extensions/

    The DMX Zone extensions Manager

    http://www.DMXzone.com/go/22670/DMXzone-extension-manager-for-Dreamweaver

    ============================

    2. download the Extension of obsolete DMX Zone Server Behaviors panel

    http://www.DMXzone.com/go/21842/enable-server-behaviors-and-data-bindings-panel-support-fo r-dreamweaver-cc.

    ============================

    3. replace the obsolete server with a modern commercial extension behaviors:

    http://www.WebAssist.com/Dreamweaver-extensions/mysqli

    Nancy O.

  • JDBC connectivity with a mysql database

    I created a MySQL database, but I have problems with communication with the DB in java

    Here is the error

    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost:3306 / books

    at java.sql.DriverManager.getConnection(DriverManager.java:604)

    at java.sql.DriverManager.getConnection(DriverManager.java:221)

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:30)

    java.lang.NullPointerException

    to displayauthors. DisplayAuthors.main (DisplayAuthors.java:66)

    BUILD successful (total time: 1 second)

    ---

    I edited windowds system variables

    CLASSPATH

    .; C:\Program Files (x86)\Java\jre7\lib\ext\QTJava.zip

    CLASSPATH1 (note the 1 at the end, I don't want to replace the previous

    ., C:\Program Files (x 86) \MySQL\Connector J 5.1.30\mysql-connector-java-5.1.30-bin.jar

    ---

    Host name: localhost Port: 3306

    User name: root

    password: Tpswsd77? (changed to thios post)

    Stored connection: Instance local MySQL56

    Connection method: Standard (TCP/IP)

    HERE IS THE CODE

    public class DisplayAuthors {}

    Database URL

    public static final String DATABASE_URL = "jdbc:mysql://localhost:3306 / books."

    Launch the application

    Public Shared Sub main (String args [])

    {

    Fitting out = null; corresponds to a connection

    Statement statement = null; query statement

    ResultSet resultSet = null; manages the results

    connect to the database books and database query

    Try

    {

    establish a connection to the database

    connection = DriverManager.getConnection)

    DATABASE_URL, "deitel', 'deitel'sc');

    < defaultstate editor-fold = "collapsed" desc = "comment" >

    DATABASE_URL, 'root', 'Tpswsd77?');

    < / Publisher-trick >

    CREATE statement to query the database

    Statement = connection.createStatement ();

    query database

    resultSet = statement.executeQuery)

    "SELECT authorID, firstName, lastName FROM authors");

    process query results

    ResultSetMetaData metaData = resultSet.getMetaData ();

    int numberOfColumns = metaData.getColumnCount ();

    System.out.println ("Table Authors of books database: \n");

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", metaData.getColumnName (i));

    System.out.println ();

    While (resultSet.next ())

    {

    for (int i = 1; i < = numberOfColumns; i ++)

    System.out.printf ("%-8s\t", resultSet.getObject (i));

    System.out.println ();

    } / / end while

    } / / end try

    catch (SQLException sqlException)

    {

    sqlException.printStackTrace ();

    } / / end of capture

    Finally / / resultSet, statement and connection are closed to this

    {

    Try

    {

    resultSet.close ();

    Statement.Close ();

    Connection.Close;

    } / / end try

    catch (System.Exception Exception)

    {

    exception.printStackTrace ();

    } / / end of capture

    } / / end finally

    } / / main end

    } / / end of class DisplayAuthors

    Given that you seem to be running from netbeans, you would better add the jar to the project libraries...

    And NO, you should NEVER put anything in your system classpath. It's a very bad habit, led to the equivalent of Java of the DLL hell and of course from the moment that you distribute the application to any other machine that's going to fail again.

    Add it instead of the specific CLASSPATH of the application.

    And do not put anything on the class path that has spaces in the name, it is no longer can cause problems, but don't count on that it works.

  • Problem, try to connect to oracle to mysql database

    Hello

    I need assistance with the configuration, I'm trying to connect to an oracle 11 g r2 windows to a linux mysql 5.5, but I'm having a lot of questions, here, I'll put the configuration.
    How thanks for everyone's trying to help me!

    Here is my tnsname.ora:
    tnsnames.ora # Network Configuration file: C:\app\Administrador\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = gabriel-103eff2)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)
    )
    )
    ms_connection =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp) (HOST = gabriel-103eff2)(PORT=1521))
    (CONNECT_DATA = (SID = ms))
    (HS = OK)
    )



    Here's my listener.ora:

    listener.ora # Network Configuration file: C:\app\Administrador\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\app\Administrador\product\11.2.0\dbhome_1)
    (= Extproc PROGRAM)
    (ENVS = "EXTPROC_DLLS=ONLY:C:\app\Administrador\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    )
    (SID_DESC =
    (SID_NAME = ms)
    (ORACLE_HOME=C:\app\Administrador\product\11.2.0\dbhome_1)
    (PROGRAM = dg4odbc)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP) (HOST = gabriel-103eff2)(PORT = 1521))
    )
    )

    ADR_BASE_LISTENER = C:\app\Administrador



    Here's the init*.ora:

    # This is an example of initialization file of the agent that contains the HS settings
    # necessary for the database to ODBC gateway

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = ms
    HS_FDS_TRACE_LEVEL = debug


    #
    # Required for the non-Oracle system environment variables
    #
    #set < varenv > = < value >



    Here is the fix:



    Oracle Corporation - SEXTA-FEIRA 17:18:13.390 January 4, 2013


    Heterogeneous Agent release
    11.2.0.1.0




    Oracle Corporation - SEXTA-FEIRA 17:18:13.390 January 4, 2013

    Version 11.2.0.1.0

    Hgogprd entries
    HOSGIP to 'HS_FDS_TRACE_LEVEL' returned 'debug '.
    Hgosdip entries
    default assignment of 50 HS_OPEN_CURSORS
    setting HS_FDS_RECOVERY_ACCOUNT or 'RECOVER '.
    HS_FDS_RECOVERY_PWD layout to the default
    default HS_FDS_TRANSACTION_LOG of HS_TRANSACTION_LOG layout
    HS_IDLE_TIMEOUT layout to the default 0 value
    layout by default HS_FDS_TRANSACTION_ISOLATION of "READ_COMMITTED".
    layout default HS_NLS_NCHAR to "UCS2".
    layout HS_FDS_TIMESTAMP_MAPPING default 'DATE '.
    layout HS_FDS_DATE_MAPPING default 'DATE '.
    layout HS_RPC_FETCH_REBLOCKING failure to 'ON '.
    HS_FDS_FETCH_ROWS layout without '100 '.
    parameter HS_FDS_RESULTSET_SUPPORT default 'FALSE '.
    parameter HS_FDS_RSET_RETURN_ROWCOUNT default 'FALSE '.
    parameter HS_FDS_PROC_IS_FUNC default 'FALSE '.
    parameter HS_FDS_CHARACTER_SEMANTICS default 'FALSE '.
    parameter HS_FDS_MAP_NCHAR if there is no 'TRUE '.
    setting HS_NLS_DATE_FORMAT or 'YYYY-MM-DD HH24:MI:SS ".
    parameter HS_FDS_REPORT_REAL_AS_DOUBLE default 'FALSE '.
    HS_LONG_PIECE_TRANSFER_SIZE layout without "65536".
    parameter HS_SQL_HANDLE_STMT_REUSE default 'FALSE '.
    parameter HS_FDS_QUERY_DRIVER if there is no 'TRUE '.
    parameter HS_FDS_SUPPORT_STATISTICS default 'FALSE '.
    The HS_FDS_QUOTE_IDENTIFIER parameter is not defined
    setting in HS_KEEP_REMOTE_COLUMN_SIZE if 'OFF '.
    parameter HS_FDS_GRAPHIC_TO_MBCS default 'FALSE '.
    parameter HS_FDS_MBCS_TO_GRAPHIC default 'FALSE '.
    Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
    HS_CALL_NAME_ISP layout "gtw$: SQLTables; GTW$: SQLColumns. GTW$: SQLPrimaryKeys. GTW$: SQLForeignKeys. GTW$: SQLProcedures. GTW$: SQLStatistics; "gtw$: SQLGetInfo.
    parameter HS_FDS_DELAYED_OPEN if there is no 'TRUE '.
    HS_FDS_WORKAROUNDS layout by default "0".
    Release of hgosdip, rc = 0
    ORACLE_SID is "ms."
    Product information:
    Port RLS / Upd:1 / 0 PrdStat:0
    Agent: Oracle Database Gateway for ODBC
    : Installation
    Class: ODBC, ClassVsn:11.2.0.1.0_0008, Instance: ms
    Release of hgogprd, rc = 0
    Hgoinit entries
    HOCXU_COMP_CSET = 1
    HOCXU_DRV_CSET = 178
    HOCXU_DRV_NCHAR = 1000
    HOCXU_DB_CSET = 873
    HOCXU_SEM_VER = 112000
    Entry hgolofn to 2013/01/04-17: 18:14
    Release of hgolofn, rc = 0 to 2013/01/04-17: 18:14
    HOSGIP to 'HS_OPEN_CURSORS' returned '50 '.
    HOSGIP to 'HS_FDS_FETCH_ROWS' returned '100 '.
    HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536".
    HOSGIP to 'HS_NLS_NUMERIC_CHARACTER' returned '. "
    HOSGIP to 'HS_KEEP_REMOTE_COLUMN_SIZE' returned 'OFF '.
    HOSGIP for "HS_FDS_DELAYED_OPEN" returns 'TRUE '.
    HOSGIP to 'HS_FDS_WORKAROUNDS' returned '0 '.
    HOSGIP to 'HS_FDS_MBCS_TO_GRAPHIC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_GRAPHIC_TO_MBCS' returned 'FALSE '.
    Invalid value of 32 for HS_FDS_SQLLEN_INTERPRETATION
    treat_SQLLEN_as_compiled = 1
    Release of hgoinit, rc = 0 to 2013/01/04-17: 18:14
    Entry hgolgon to 2013/01/04-17: 18:14
    Reco:0, tflag:0, name: SYSTEM
    Entry hgosuec to 2013/01/04-17: 18:14
    Release of hgosuec, rc = 0 to 2013/01/04-17: 18:14
    HOSGIP to 'HS_FDS_RECOVERY_ACCOUNT' returned 'RECOVER '.
    HOSGIP for "HS_FDS_TRANSACTION_LOG" returns "HS_TRANSACTION_LOG".
    HOSGIP to 'HS_FDS_TIMESTAMP_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_DATE_MAPPING' returned 'DATE '.
    HOSGIP to 'HS_FDS_CHARACTER_SEMANTICS' returned 'FALSE '.
    HOSGIP for "HS_FDS_MAP_NCHAR" returns 'TRUE '.
    HOSGIP to 'HS_FDS_RESULTSET_SUPPORT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_RSET_RETURN_ROWCOUNT' returned 'FALSE '.
    HOSGIP to 'HS_FDS_PROC_IS_FUNC' returned 'FALSE '.
    HOSGIP to 'HS_FDS_REPORT_REAL_AS_DOUBLE' returned 'FALSE '.
    using the SYSTEM as default value to "HS_FDS_DEFAULT_OWNER".
    HOSGIP to 'HS_SQL_HANDLE_STMT_REUSE' returned 'FALSE '.
    Entry hgocont to 2013/01/04-17: 18:14
    HS_FDS_CONNECT_INFO = "msodbc".
    RC =-1 of HOSGIP for 'HS_FDS_CONNECT_STRING '.
    Entry hgogenconstr to 2013/01/04-17: 18:14
    DSN:msodbc, name: SYSTEM
    OPTN:
    Entry hgocip to 2013/01/04-17: 18:14
    DSN:msodbc
    Release of hgocip, rc = 0 to 2013/01/04-17: 18:14
    Release of hgogenconstr, rc = 0 to 2013/01/04-17: 18:14
    Entry hgopoer to 2013/01/04-17: 18:14
    hgopoer, line 233: had native error 0 and sqlstate IM002; message follows...
    [Microsoft] [ODBC driver manager] Nome da dados nao e found melting nenhum driver padrão especificado {IM002}
    Release of hgopoer, rc = 0 to 2013/01/04-17: 18:14
    hgocont, line 2753: call SqlDriverConnect obtained sqlstate IM002
    Out of hgocont, rc = 28500 to 2013/01/04-17: 18:15 with the ptr error FILE: hgocont.c LINE: 2773 ID: something else that permission is not valid
    Out of hgolgon, rc = 28500 to 2013/01/04-17: 18:15 with the ptr error FILE: hgolgon.c LINE: 781 ID:Calling hgocont
    Entry hgoexit to 2013/01/04-17: 18:15
    Release of hgoexit, rc = 0

    ______________________________________________________

    When I use tnsping ms_connection


    C:\Documents and Settings\Administrador > tnsping ms_connection

    AMT Ping Utility for 32-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2
    013 09:04:29

    Copyright (c) 1997, 2010, Oracle. All rights reserved.

    Archives of Parometros books:


    Used o useful TNSNAMES para resolver o apelido
    Contatar trying (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = gabriel-103eff2
    () (PORT = 1521)) (CONNECT_DATA = (SID = ms)) (HS = OK))
    OK (0 ms)





    Thank you very much!!!

    Hello
    The error in your gateway trace file-

    [Microsoft] [ODBC driver manager] Nome da dados nao e found melting nenhum driver padrão especificado {IM002}

    translates-

    Data Source name not found and no driver by default specified

    This means that you don't have a system DSN defined on the Windows machine called "ms", which uses a MySQL ODBC driver to connect to the MySQL database on your Linux machine.
    The system DSN to be used is defined by the parameter-

    HS_FDS_CONNECT_INFO = ms

    Therefore, you must perform the following operations

    -install a driver Windows ODBC de MySQL
    -define a DSN system whichuses this driver to connect to your MYSQL Linux
    -Use this DSN as parameter HS_FDS_CONNECT_INFO

    You must ensure that the DSN can connect to MYSQL without Oracle involved before DG4ODBC can also establish a connection.

    Kind regards
    Mike

  • fixing mysql database

    I have an old database that came from MS SQL and was imported long ago to mysql. He seems to have a few bad dates I need to fix...

    Some appear in the format:

    0000-00-00 00:00:00

    error in cf research says:

    cannot be represented as a java.sql.Timestamp

    (I think they speak of this area...)

    It makes it difficult to update the PB when it keeps the slightest mistake...

    also I tried to look with phpmyadmin in the field for: AS and 0000

    but empty shows query

    I've noticed that most recent TS seem to have additional one.0 in the end as:

    0000-00-00 00:00:00 = old problem?

    2012-10-01 00:00:00.0 = new ok...

    Q: How can I get around this?

    It is a well known problem in older versions of MySQL. A common solution is to include the property

    zeroDateTimeBehavior = convertToNull

    in the field of connection string in the source settings in the ColdFusion Administrator of MySQL database. Requests and then returns the value NULL in the 0000-00-00 00:00:00 as is encountered. See, for example, the Nadel's blog on this.

  • Using flash to display an image in a mysql database

    How can I use flash to insert a picture into a mysql database?

    I have an android app, I do when someone post a photo and the image appears in a mysql database.

    This is how I do it: I make a php page where in the link you put like this: example.com/example.php?IMAGE= _ and he puts it in the mysql database. Only what should I put in the part _ which will make the image appear in the mysql database? In flash, I'm using getURL to go to the url above.

    How to make the image they take in my application appear in the part _ and the link in my mysql database?

    Again, you can just hit edit rather than 2 messages. People get emails every time you post. You me sprayed just in emails.

    If you can download with flash and your problem is next to Server related, try the appropriate forum like this has nothing to do with Flash. Maybe the Dreamweaver forum.

    Good luck

  • MySQL database does not work on the remote server help!

    Hello

    I'm kinda a noob in PHP/MySQL and I can't get my MySQL database to work on my remote server (it works on my local server).

    On the spot, I have:

    Connection name: local

    MySQL server: localhost

    User name: root

    Password: root

    Database: wbgt

    From a distance, I have:

    Created a database to help:

    username: wbgt (although it displays it as "web100-wbgt")

    password: root

    I also imported the MySQL database on the remote server.

    When I try to access any page that uses the MySQL database, it comes in white!

    Any ideas?

    Thanks in advance for your help

    Eddie

    Thank you! I got confused that it was not connect to the remote server.

    If someone else is in a similar situation as I was.

    I use heartinternet.co.uk

    1. export your local MySQL database
    2. create a MySQL database on your remote web hosting provider
    3. go to manage (or something similar) and import the MySQL database on your web hosting provider remotely
    4. in dreamweaver go to database data, +, MySQL connection Panel (or change your original database)
    5. Connection name - what you want
    6. MySQL - Localhost Server
    7. User name - whatever your remote site named the database in my case, I entered admin, but the user name is admin-web100-8
    8. Password - password for your remote database
    9. Database - go in manage your databases click on database and on the left side you should see the name of your database. in my case it was web100-admin-8 new (I couldn't connect on the ddatabase distance so I had to enter manually)
    10. Click fact put and it should work!
  • How to track user stop oracle database on unix OS?

    our Organization is to have 10 DBA with sysdba priviladge. We use the UNIX operating system. In the morning, say for example if some one (SYSDBA user) stop the oracle database how the other user sysdba to trace the user stop the database? the only required information is Terminal where oracle got shutdown and user name? Help, please...

    Sorry, but this has also incorrect

    SYSDBA connections are always checked, regardless of the setting of audit_trail and check any option.

    -----------
    Sybrand Bakker
    Senior Oracle DBA

  • Connect to a Local MySQL database

    I am creating a java application and need to use a database. I decided to use a local MySQL database. I'm having difficulties to establish a connection to the database. I have analyzed various codes for this problem on the internet and wrote my own code similar to those that I analyzed. I don't see why the code below does not work because I also put the path to the connector inside the variable classpath to the environment. I did everything that was suggested on various jdbc tutorial sites and yet my code does not work. Any suggestion would be appreciated. I already posted a thread on this issue before, but the suggestions really helped and I'm hoping to get different results this time.

    These are the errors I get:

    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    in java.net.URLClassLoader$ 1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged (Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    to Sun.misc.Launcher$appclassloader$ AppClassLoader.loadClass (Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    at java.lang.Class.forName0 (Native Method)
    at java.lang.Class.forName(Class.java:169)
    to homeworkorganizer. Database.addCourse (Database.java:28)
    at homeworkorganizer.test.main(test.java:17)
    January 2, 2011 18:10:22 homeworkorganizer. Database addCourse
    GRAVE: null
    java.sql.SQLException: no suitable driver found for jdbc:mysql://localhost/homework
    at java.sql.DriverManager.getConnection(DriverManager.java:602)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    to homeworkorganizer. Database.addCourse (Database.java:51)
    at homeworkorganizer.test.main(test.java:17)
    BUILD successful (total time: 0 seconds)


    Code I have:


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */

    package homeworkorganizer;
    import java.sql. *;
    import java.util.ArrayList;
    import java.util.Properties;
    import java.util.StringTokenizer;
    import java.util.logging.Level;
    to import java.util.logging.Logger;
    java.net import. *;


    /**
    *
    Nisha * @author
    */
    public class {Database



    private String ipAdress = "localhost";

    ' public void addCourse (String courseNumber, String courseCredit, String courseName) {}
    try {}
    Class.forName ("com.mysql.jdbc.Driver");

    } catch (ClassNotFoundException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);

    }

    Server String = "jdbc: / /" + ipAdress + "/"; "."
    String dbName = "homework."

    String url = Server + dbName;

    Properties props = new Properties ();
    props.setProperty ("user", "Christian");
    props.setProperty ("password", "pass");

    Connection Conn;
    Statement st;
    String columns = "course_number, no_credits, course_name;
    String sqlInsrt = "insert current ()" + columns + ") values";

    try {}

    Conn = DriverManager.getConnection ("jdbc:mysql://localhost/homework", "root", "kish");
    System.out.println ("connected to the database\n");
    St = conn.createStatement ();


    Add the user to the database
    String userInfo = "(""+ courseNumber +" ', '"+ courseCredit +" ', '"+ courseName +" ")"; "

    Use executeUpdate when our statement will change the database.
    st.executeUpdate (sqlInsrt + userInfo);


    }
    catch (SQLException ex) {}
    Logger.getLogger (Database.class.getName ()) .log (Level.SEVERE, null, ex);
    }

    }
    }

    According to the error, your class cannot find driver class... This means that you have not added the mysql connector jar file in your build or lib path... Please check the same...

  • shared object why? If you already have all the data in a mysql database

    Hello.

    I see that a shraed object can be used to store the data locally is to say: what avatar you use, what level you are and what the screen you are currently on. But why you need or use a shared if object you all this info on a mysql database, anyway.

    In addition, a shared object can get destroyed as you clear the cache, as many people have. In addition, Governments are looking at the cookies and they start to hang.

    That is to say: should really so we have?

    I quite often to store a user name in a shared object and pre-fill the login form

    most of the browsers that will be for text html in any case boxes

    you could add an option "Remember me on this computer" connect directly, and then you would save username and password

    your site might only need to login to some privelidges, like posting in a forum. You may want to save the preferences for the shared object if they are applied before the opening of the session

    BTW, the shared object is not a cookie. clear cookies, cache and browser history make the shared object. In fact I bet that most of the users don't know how to delete it.

  • How is PDF link to MySQL database - it done?

    How can I link the data entered in a PDF form dynamic to reside in a MySQL database. I do not seem able to make a connection.

    Here are the steps that follow:

    Mandatory / new login / name: testdata; Description: database OLEDB / Connection String: build: SQL Native Client / Source of data: location of the database SQL (.mwb); Connect to the server: localhost

    But when I test the connection I get an initialization error and the connection times out.

    So my question is: How do you connect the PDF fields in a MySQL database? and what I am doing wrong? Is this a feasible process to bind also the boxes to check and other areas to a database? How you would bind the data dynamically - say if I choose a certain area in a menu drop down, certain other fields will fill through the database?

    Thanks again for all the help and insight.

    Shai

    PS I have attached a sample form (not yet completely integrated to accept some data) and a database of MySQL example (no data on the inside).

    A number of things before you go this route.

    1. you will need to load the driver ODBC for MySQL on your machine and each machine that will want to use this form.

    2. next, you need a DSN that creates the link between the MySQL DB table and your form.

    3. If you use Acrobat to run the form, then you can proceed. If you are using the drive it does not support DB connections free player expand the document using LiveCycle Reader Extensions Server.

    Have you met all these criteria?

    Paul

  • On the remote host MySQL database: password encryption?

    Hello

    I discovered the world of PHP and MySQL in the last days. I didn't get all the intricacies still but nevertheless I managed to set up a server "localhost" on my computer, create a MySQL database and display correctly information in this database in HTML using PHP pages.

    I am now at the stage of transferring it to the remote host where the site will happen: I exported my database, imported these information in the database on the server host and I n unexpectedily even just to get my PHP/HTML pages to connect to this database. It's great.

    I have one question. I've read a lot of thread in this forum about this, but haven't seen an answer: must the password encryption? I mean, when I connect to a database using DW CS4, the software creates for me a connections folder in my Web site root folder and stores inside a little PHP to the folder with the server name, database name, user name and password which are necessary to allow PHP to connect to the MySQL database. It is all printed clearly in there. Once which is transferred to the remote host, it is always accessible to anyone? Should I not worry and try to hide the password?

    Any thoughts on this would be greatly appreciated.

    Emilie

    Thread moved to Dreamweaver application development forum, which addresses other issues aside and PHP/MySQL server.

    As long as the server is enabled in PHP, put the connection details in a PHP file like this is not a problem. PHP code is processed on the server. Only its output is sent to the browser. Even if someone guesses the name of your connection file, they won't see anything if they try to load the page in a browser. The only way they can see it is to hack into the server. It is important to have passwords on your FTP account.

  • DreamweaverMX and a MySQL database

    Hello

    I am trying to connect to my MySQL database in DreamwaeverMX.

    When I try to add the MySQL connection I put data as follows.

    Login name: connTrio
    Server name: localhost
    User name: root
    Password: password

    I get error message "the schooner error has occurred" when I try to select the database.

    I can confirm that the database is present, mysql is running, used password is correct.

    I hope someone can help

    Best regards

    Martin

    Hello
    The "nightmare" is over!
    Found this Wamp server set up

    http://www.wampserver.com/en/download.php

    100% working in less than 10 minutes!

Maybe you are looking for