FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
||||
|
||||
Conectar Firebird a PHP
Hola amigos. Aprendiendo PHP (por necesidad)
Trabajo con Win10, Firebird 2.0, PHP 7, Apache NetBeans IDE 12. Tengo este código que es una pantalla de Login: Código:
<? include ("FBConexion.php")?> <!DOCTYPE HTML> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html> <style> table { border: 2px solid #353A46; background-color: #CCD1D1; } input[type=text], input[type=password] { width: 100%; padding: 8px 20px; border: 2px solid #CCC; box-sizing: border-box; } img{ width: 100px; height: 100px; } label{ font-size: 14px; font-weight: bold; font-family: arial; } input[type=submit]{ background-color: #ccc; color: black; padding: 4px 10px; margin: 8px 0px; border: 2px solid; cursor: pointer; width: 40%; } </style> <head> <meta charset="UTF-8"> <title>Conexión al SisDLL 2.0</title> </head> <body> <center> <h2>"SISTEMA DE DISTRIBUCION"</h2> <h2>SisDLL 2.0</h2> <h2><p>Bienvenidos</p></h2> <hr width=50%> <form method="post" action="FBConexion.php"> <table> <tr> <td colspan="2" style="background-color:#34495E; padding-bottom: 5px; padding-top: 5px;"> <center> <p style="color:whitesmoke;"> <label>LOGIN</label> </p> </center> </td> </tr> <tr> <td align="center" rowspan="5"> <img src="candado2.png"/> </td> <td> <label>Usuario:</label> </td> </tr> <tr> <td> <input type="text" name="txtusuario"/> </td> </tr> <tr> <td> <label>Contraseña:</label> </td> </tr> <tr> <td> <input type ="password" name="txtpassword" /> </td> </tr> <tr> <td> <input type="submit" value="Ingresar"/> </td> </tr> </table> </form> </center> </body> </html> Código:
<? $dbHost="127.0.0.1"; $bbdd = ":c:\\Sis\\BD\\DB_DATOS.FDB"; $charset="utf8"; $dbUser="SYSDBA";//$_POST["txtusuario"]; $dbPass="masterkey";//$_POST["txtpassword"]; ; $con = ibase_connect($dbHost.$bbdd,$dbUser, $dbPass,NULL,0,NULL,NULL); if (!$con){ //echo "Acceso denegado!"; die("Las credenciales ingresadas no corresponden"); exit; } ?> Código:
<form method="post" action="FBConexion.php"> Cita:
Agregue a las variables de entorno del sistema "c:\xampp\php\ext" Q mas hará falta que no logro conectar?? Espero me puedan ayudar. Saludos y gracias. PD. Cuando quiero levantar el servidor apache, no se puede, consulté el LOG y dice esto: Cita:
__________________
Miguel Román Afectuoso saludo desde tierras mexicanas....un aguachile?, con unas "cetaseas" bien "muertas"?, VENTE PUES !! Última edición por mRoman fecha: 23-07-2020 a las 07:34:57. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Conectar firebird 3.0 y ado.net | ronimaxh | Conexión con bases de datos | 7 | 26-09-2017 20:50:49 |
conectar firebird a PHP | NelsonJG | PHP | 6 | 12-03-2013 21:21:47 |
conectar firebird-bde | Galahad | Firebird e Interbase | 1 | 07-04-2009 00:30:53 |
Conectar 2 BD con FireBird | itsi | Conexión con bases de datos | 3 | 24-02-2009 14:00:33 |
conectar Firebird y DBE | miguel_e | Firebird e Interbase | 4 | 16-06-2008 18:38:39 |
|