How to Connect login form to MySql Db connectin Pls..tellme

How to Connect login form to Mysql Db connection Pls..tell me

Specify variables for username and password and connect with the MySQL database using the mysql_connect() function. The username “root” does not require a password by default.
Specify the server parameter of the mysql_connect() method as localhost:3306.
$username='root';
$password='';
$connection = mysql_connect('localhost:3306', $username, $password);
If a connection does not get established output the error message using the mysql_error() function.
if (!$connection) {
$e = mysql_error($connection);
echo "Error in connecting to MySQL Database.".$e;
}

Similar Messages

  • How to remove login form for iView in portal

    Hi,
    I have created a workset in portal which provides links for various BI reports. In the properties of each page for report I set the property to lunch it in headerless window.
    When I login with test user and click on link for report its asking for userID password again. Once I login, it opens the report and it doesnt ask for other reports. If I logoff and close the browser and open in new browser its again ask's for user ID password when I open the report for first time.
    Could any one let me know the solution how to avaoid the login form  on clicking the link for BI report configured in workset.
    It is working fine for me in Dev and QA system, recently we did transport to Trainign system and I am facing this issue only in training system.
    Regards,
    Ravi.

    Hi,
    I dont want that login page to appear again. evan for the first time.
    The login page should apper only once that too while loging into portal. once I enter into workset and click on link for report which is launched in new window should not ask for login again.
    Its happening in my training system, which is not used to be in my dev and QA system.
    I need solution to show the report directly with out asking for authentication(login form) once again on clickig the link for report in workset.
    Regards,
    Ravi.

  • How i connect my forms/report  with 9i database/ how i configer my form and

    hi master;
    i have 6i forms and 9i oracle database both are right but how i accece the 9i in my form and report.
    which file i copy and where i copy .
    please send me file name or how i configer my form and report with 9i
    thanking you
    Aamir

    Dear Aamir,
    Please copy TNSNAMES.ORA file from your Database Home/NETWORK/ADMIN directory and copy that in NETWORK/ADMIN directory where you installed Forms/Reports 6i. then you can connect to your server by using SID as host string like: system/manager@<SID example: ORCL>
    Regards,
    Reza

  • How to Connect Adobe form to Portal

    hi sdn friends,
    How to connect R/3 Adobe form to the Enterprise Portal / Smart form to the Enterprise Portal
    plz help me
    thank u,
    praveen.

    That depends...
    If you need to display MSS forms into your portal, plz have a look at the Business Package for MSS. Interactive forms are presented in the portal via the ISRForm application (and PCRApplication).
    If you need to display your custom made forms into the portal, you can develop your own WebDynpro application that embeds the Adobe Interactive form.
    Could you explain more about your requirements?
    Cheers,
    Noë

  • How to connect Oracle 10g to MySql

    hi,
    can anybody plz guide me how to connect Oracle with MySql...I was going through official documentation and I found the procedure for connecting with Informix, Sybase and Teradata etc but I could not find for MySql...so can anybody plz guide in this regard...
    Thanking you

    To connect to a MySQl database the product you have to use is DG4ODBC 11.2. It requires a 3rd party MySQL ODBC driver (64bit on 64bit platforms and 32bit on 3bit platforms). This Dg4ODBC has to be installed in its OWN ORACLE_HOME. Installing it into the database home 10.2 you'll corrupt the database installation.
    Before installing DG4ODBC, please make sure your Oracle database release is 10.2.0.4 or 10.2.0.5. If you still have 10.2.0.3 or 10.1.0.5 you have to apply the gateway compatibility patch to your Oracle database release.
    More details can be found in the gateway config note available at "My Oracle Support".
    The notes are:
    - Installing on a 64bit Unix OS:
    How to Setup DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX) [ID 561033.1]
    - Installing on 32bit linux:
    How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit [ID 466225.1]
    - Installing on Windows:
    How to Setup DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit [ID 466225.1] (although it is the 32bit note is is almost similar for a 64bit Windows installation
    You can download Dg4ODBC for free from http://edelivery.oracle.com or from http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

  • How to connect oracle forms 6i with .odb database

    Hai,
    I need to connect oracle forms 6i with .odb database.
    What are the software i need to install.
    tell me the steps hoe to connect the oracle forms6i with .odb database

    I must say honestly that I got a little ticked when you have mentioned .odb is oracle lite.You should mention the complete name of the software whichever it may be as its not at all mandatory,everyone would know the acronym.
    Anyways,a quick search revealed this.
    Connect Forms 6i application to Oracle 10g Lite database on notebook
    I have not worked in Oracle lite at all.So I can't help much in it.But as per the thread,it wont be a straight connectivity.I would suggest you contact Support
    Aman....

  • How to connect Oracle forms 11g to Database?

    Hi,+
    *I've been facing some issues with connecting my forms 11g to database 11g . . it is quite different from 10g*+
    can anybody help me with this, please?+
    Thank you in advance.+

    Can anybody help me, please?!
    If this section is not the right place to post my issue, could you advise me where else should I go?
    Thanks. .

  • How to connect oracle forms 10g with oracle 10g express database?

    Hi all,
    I have downloaded and installed oracle forms 10g and oracle database 10g express, when I open net configuration assistant to test local net service, I tested the default service (EXTPROC_CONNECTION_DATA) BUT THE RESULT IS "ora-28547 connection to server failed probable oracle net admin error"
    How can I solve this issue?
    My tnsname.ora is located in c:\DevSuiteHome\network\admin\tnsnames.ora, and its contents is:
    # tnsnames.ora Network Configuration File: c:\DevSuiteHome\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = nour-pc)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = PLSExtProc)
    Edited by: user10228498 on Jan 21, 2011 11:37 PM

    I copied the contents of C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN\tnsnames.ora and appended it to C:\DevSuiteHome\NETWORK\ADMIN\tnsnames.ora
    and tried net configuration management to test local net service, the test was ok, thus the first problem resolved.
    but the login problem in forms developer still exist and it claims that: ora-12154 tns could not resolve the connect identifier specified.
    any ideas?

  • How to connect Oracle Form Builder - Oracle Developer Suite 10g - Windows 7

    Hi brothers and sisters,
    Hope all you are fine. I have installed Oracle Developer Suite 10g on Windows 7 successfully and it is working properly. But when I connect to Oracle Form Builder using Connect window asking:
    a. User Name
    b. Password
    c. Database
    a message box appear: 'ORA-12154: TNS:could not resolve the connect identifier specified'
    I verify my Connect String with: 'SELECT * FROM v$database', but the problem remain the same.
    Please help me how can I connect to Oracle Form Builder.
    Noor

    hi
    plz use Net Configuration Assistant or set tnsnames.ora with connect string and computer name.
    Net Configuration Assistant.
    when its opened then go to .
    *Local Net Service Name Configuration.
    *Click Next.
    *Add.
    *Click Next.
    * Service Name--Type here connect String which is XE or any Connect String.
    *TCP.
    *Click Next.
    *Host Name--Enter here Computer name or Ip address.
    *Yes,Perform a test.
    you can enter correct password and username here.
    Note:- your Database should be Up if its not Up it will through the same error so plz startup your database first.
    sarah

  • How to connect 10G forms & 10G Database

    I had install 10g Forms & Database, but when i m trying to connect forms to database that time i m getting error i.e.
    ORA-12545: Connect failed because target host or object does not exist
    so, Please give me the solution,
    Thanks & regards

    Please refer to Hans's message,
    Request for proper information and to refuse to help when it's missing

  • How to connect oracle form6i or 10g to mysql database

    can anyone tell me how to connect oracle forms to mysql database using ODBC connector?
    akin

    Hi
    this is step by step installation guide
    http://download.oracle.com/docs/cd/E11882_01/install.112/e10875/toc.htm
    also below link for download
    http://www.oracle.com/technology/software/products/database/index.html
    hope this helps
    Zekeriya

  • Connect form to mysql server

    can anyone tell me how to connect oracle forms to a mysql server database

    Hi,
    Can you please send me the method of connecting Forms 6i to MY SQL server.
    Also if you have a developed form connected to MYSQL,please send me that to
    [email protected]
    thanks in advance,
    Surya

  • How to print HR form

    Hi,
    how to print HR form..(not smartform or sapscripts)
    i.e how to connect the form to the program and where to write the program.
    <b>as we do it in sap scripts ,SE38 for program to connect SE71 layout program..</b>
    Cheers,
    Raghavesh
    Message was edited by:
            Raghavesh Reddy

    Hi Raghavesh,
         I think you are taking about the HRFORM name that we give in the Report RPCALCU0 in the HRFORM..
    If this is the case then you can use the transaction 'HRFORM'..
    In this you can find some Examples.
    Reward points if it solved your problem.
    Regards,
    Kiran I

  • "How to forward from a struts form to a login page?"or "how to connect form

    Can Any boby please let me know
    "How to forward from a struts form to a login page?"or "how to connect form to login session id"?
    Thanks
    Shailajakrishna

    I believe I can not use a
    request.sendRedirectURL("....") in which I would
    encode all my parameters, because:Righto. This is a bit tricky.
    Basically, you have two options, and both of those are a little nasty.
    1) You could use and intermediate JSP page. Just dispatch you request to that page, use the attributes to construct a form with hidden fields, and use Javascript to POST that form to your intended URL on the document's BODY onload event. Would work, but wouldn't be pretty and requires you to use JSPs and Javascript. Still an idea.
    2) This is something that I wouldn't recommend. Open a socket to the URL you you want to post your data. Manually construct a HTTP POST request, encoding your parameters into the headers. Read and parse the response & modify your HttpServletResponse object accordingly.
    Take a look at i.e. http://javaalmanac.com/egs/java.net/PostSocket.html?l=new for some pointers.
    I'd go with item #1.
    For my own edification, I'd be also interested in
    knowing why such a function does not exist in the
    current httpServletRequest api.I suppose it's a little out of scope. Servlets were ment to interoperate inside one container, not across domains and different implementations.
    I'm guessing I must be missing something fundamentals
    maybe?No, you're not.
    .P.

  • How to create a LOGIN Form & LOGIN ID & PASSWORD for END USERS

    hi,
    i have just created a Database and Forms & Reports using developer 6i.
    now i want to deleiver that Database to end users, but i dont know that how to create a LOGIN Form for the end users and also i want to assign each user a Login ID & Password.
    Plz help me to solve out this problem.

    1. Create the user accounts on the database CREATE USER ... IDENTIFIED BY...
    2. Grant CONNECT Role to the Users
    3. in the main form (the one which is being called initially at runtime) in the ON-LOGON-Trigger create a CALL_FORM() to the Login Form
    4. The Login Form will be called; build a Block with username, password and a Button
    5. In the Button call the LOGON Built-In
    6. Control will be passed to the initially called form again
    I also noticed a thread in here explaining this in more detail...
    Message was edited by:
    user434854

Maybe you are looking for

  • Corrupt Object message after cache validation

    Help! I am trying to delete a single UserEvent object that is in a one to many collection private owned by a User object. The way I am doing this is by 1) building a prototype of the UserEvent to delete, 2) setting its primary key attributes (User an

  • ERROR MESSEGE WITH UPDATER

    I'M RUNNING WINDOWS VISTA ULTIMATE AND I HAVE TRIED TO INSTALL UPDATER WHICH ERROR MESSEGE 2738-VB SCRIPT RUNTIME FOR CUSTOM ACTION. IS THERE A SOLUTION? PLEASE GET BACK TO ME ASAP. THANK YOU FOR YOUR TIME.

  • Pdf crashes

    Hi I am using Mac OS X 10.5.7 and after the last batch of updates (iLife, compatibility and some others) I can't open pdf files in any of the mac applications. Quick Look in pdf files crashes the finder instantly, opening in Preview crashes preview a

  • XP  Tiger Bootcamp made volume not usable with Leopard

    Hey All When I had Tiger, I installed XP (via bootcamp) onto a separate HD and all was fine. I would boot into the separate XP HD to play games. I have Leopard installed now and I cannot access the Tiger Bootcamp created XP HD now. Any thoughts? Than

  • Screen black after opening

    Hello, I was wondering if anyone could help me with a problem that I'm having with my Mac Book Pro. I hardly ever turn off my computer and usually just close so basically the computer is sleeping. When I go to open my computer I have a black screen a