Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/07/2014, 13:11
dessignglobaltec86
 
Fecha de Ingreso: julio-2014
Mensajes: 6
Antigüedad: 9 años, 9 meses
Puntos: 0
problema en dreamweaver

buenas estoy comenzando a utilizar dreamweaver y programacion php y veo que hay unos cambios en cuanto a mysq y mysqli e leido la guia oficial y e solucionado casi todos los fallos exepto 2

<?php require_once('Connections/link.php'); ?>
<?php

if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}

$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

el real escape segun la guia para mysqli debe venir con identificador de conexion y la cadena que escapa sin embargo cuando uso la variable $link que es mi variable de conexion que dice q no esta definida y si esta definida en un

conexion.php

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_link = "localhost";
$database_link = "damasco";
$username_link = "root";
$password_link = "";
$link = mysqli_connect($hostname_link, $username_link, $password_link) or trigger_error(mysql_error(),E_USER_ERROR);
?>