From: | Giorgio <giorgio(dot)pgsql(at)gmail(dot)com> |
---|---|
To: | PostgreSQL <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | OT: Problema de conexion |
Date: | 2011-05-23 22:17:43 |
Message-ID: | BANLkTi=5H5JXc6uEDen0cnhv2JGCN-MYMA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Compañeros cuando quiero conectarme a mi web me muestra este error:
*Fatal error*: Call to undefined function mysql_connect() in *C:\Archivos de
programa\Apache Software Foundation\Apache2.2\htdocs\admin\inc\class.php* on
line *13*
*
*
*Este es mi codigo:*
*
*
*
<?php
require("config.php");
class materclass{
var $conn;
var $rs;
function materclass(){
$this->conn = mysql_connect (DB_HOST, DB_USER, DB_PASS) or die ("No
conectado");
mysql_select_db(DB_NAME,$this->conn);
return $this->conn;
}
function consulta($sql){
$this->rs=mysql_query($sql,$this->conn); //or die ("Consulta invalido");
if(!$this->rs){
echo "No se puede ejecutar la consulta ".$sql." ".mysql_error()."
".mysql_errno();
}else{
return $this->rs;
}
}
function consulta_array(){
return mysql_fetch_array($this->rs);
}
function consulta_filas(){
return mysql_num_rows($this->rs);
}
function cerrar_conexion(){
return mysql_close($this->conn);
}
}
?>
*
Cual puede ser el problema y cual seria la solución si fueran tan amables..
From | Date | Subject | |
---|---|---|---|
Next Message | Marcos Matamala | 2011-05-23 22:39:23 | Re: OT: Problema de conexion |
Previous Message | Fabian Núñez | 2011-05-23 22:17:42 | Re: Error |