$val) { $return[$key] = addslashes($val); } return($return); } return addslashes($value); } foreach ($_POST as $key => $value){ if (!$mq){ $value = add_slashes($value); $$key = $value; } } $ahora = date("Y-m-d"); $tahora = date("Y-m-d H:i:s"); $maildominio='localhost'; class Connection { var $connectString; var $dbUser; var $dbPassword; var $recordSets; var $connection; function Open( $connString, $user, $pswd ){ $this->connectString = $connString; $this->dbUser = $user; $this->dbPassword = $pswd; $this->connection = mysql_connect("mysql.pinturayarte.com", $user, $pswd ); mysql_select_db( $connString, $this->connection ); } function Close(){ mysql_close( $this->connection ); } function Execute( $execString ) { if( ! mysql_query( $execString, $this->connection ) ) { echo '
Se produjo un error en la Base de Datos .
Vuelva a intentarlo mas tarde.
Error Número: '.mysql_errno().'
Query: '.$execString.'
Error: '.mysql_error().'
Página: '.getenv("PATH_INFO").'
IP: '.getenv("REMOTE_ADDR").'
'; // mail("emiliano.horcada@p3design.com", "mySQL err - GD", "Query: $execString\n\nError nro[$errno] = $errmy\n\nPágina: $pagin\n\n", "From: danno@gatodumas.com\r\nReturn-Path: $d_tome@hotmail.com\r\nReply-To: daniel@danno.com.ar\r\nX-Mailer: PHP/" . phpversion() . "\r\nContent-Type: text/plain;"); mysql_close( $this->connection ); exit; } } function Retrieve( $execString ){ $recset = new Recordset; $recset->Exec( $this->connection, $execString ); return $recset; } } class Recordset { var $result; var $fieldIndex; var $isEof; var $fieldData; function Exec( $connection, $execString ){ $this->result = mysql_query( $execString, $connection ); if( !$this->result ) { echo '
Se produjo un error en la Base de Datos .
Vuelva a intentarlo mas tarde.
Error Número: '.mysql_errno().'
Query: '.$execString.'
Error: '.mysql_error().'
Página: '.getenv("PATH_INFO").'
Página: '.getenv("REMOTE_ADDR").'
'; // mail("emiliano.horcada@p3design.com", "mySQL err - GD", "Query: $execString\n\nError nro[$errno] = $errmy\n\nPágina: $pagin\n\n", "From: danno@gatodumas.com\r\nReturn-Path: $d_tome@hotmail.com\r\nReply-To: daniel@danno.com.ar\r\nX-Mailer: PHP/" . phpversion() . "\r\nContent-Type: text/plain;"); mysql_close( $this->connection ); exit; } $this->MoveNext(); } function EOF(){ return ! $this->isEof; } function Fields( $name ){ return $this->fieldData[$name]; } function MoveNext(){ $this->fieldData = mysql_fetch_array( $this->result ); if( ! $this->fieldData ) { $this->isEof = 0; }else { $this->isEof = 1; } } function num_fields(){ return mysql_num_fields($this->result); } function NumRows(){ return mysql_num_rows($this->result); } function Close(){ } } $Conn = new Connection; // DB - USER - PASS $Conn->Open("qaj432","qaj432","palomazo40"); ?> Sergio Martinez Sanchez / Pinturas
pinturas
multimedia