Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/06/2011, 15:44
Avatar de ylellan
ylellan
 
Fecha de Ingreso: mayo-2010
Ubicación: en un lugar de Veracruz
Mensajes: 432
Antigüedad: 14 años
Puntos: 36
Respuesta: Base de datos no seleccionada

corazon q ta un buen archivo de conexion:

Código PHP:
<?php 
function conectar()
{

    
mysql_connect("localhost","root","root");

    
mysql_select_db("tu_base");
}
function 
desconectar()
{
    
mysql_close();
}
?>

y ya despues

Código PHP:
<?php require_once(/var/www/Connections/resta&#8230; 
conectar();
?>
<?php
if (!function_exists("GetSQLValueString")) {
function 
GetSQLValueString($theValue$theType$theDefinedValue ""$theNotDefinedValue "")
{
$theValue get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue function_exists("mysql_real_escape_strin… ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue)");

switch (
$theType) {

.
.
.
desconectar();
suerte