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…
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