Foros del Web » Programando para Internet » PHP »

errores en listas dinamicas en dreamweaber

Estas en el tema de errores en listas dinamicas en dreamweaber en el foro de PHP en Foros del Web. hola: El problema que tengo es que al editar la lista me surgen los siguientes errores: Warning: virtual(c:/wamp/www/connections/doc.php) [function.virtual]: failed to open stream: No such ...
  #1 (permalink)  
Antiguo 12/06/2009, 07:50
 
Fecha de Ingreso: junio-2009
Mensajes: 2
Antigüedad: 14 años, 10 meses
Puntos: 0
errores en listas dinamicas en dreamweaber

hola:
El problema que tengo es que al editar la lista me surgen los siguientes errores:


Warning: virtual(c:/wamp/www/connections/doc.php) [function.virtual]: failed to open stream: No such file or directory in c:\wamp\www\azteca\medico2.php on line 1

Warning: virtual() [function.include]: Failed opening 'c:/wamp/www/connections/doc.php' for inclusion (include_path='.;C:\php5\pear') in c:\wamp\www\azteca\medico2.php on line 1

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in c:\wamp\www\azteca\medico2.php on line 32

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\wamp\www\azteca\medico2.php on line 34

y este es el codigo que tengo

<?php virtual('/Connections/doc.php'); ?>
<?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_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_doc, $doc);
$query_Recordset1 = "SELECT nombrem FROM medicos";
$Recordset1 = mysql_query($query_Recordset1, $doc) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?><select name="doc" size="15">
<option value="" <?php if (!(strcmp("", $row_Recordset1['']))) {echo "selected=\"selected\"";} ?>></option>
</select>
<?php
mysql_free_result($Recordset1);
?>
Y este es el archivo de la coneccion:

C:\wamp\Connections

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_doc = "localhost";
$database_doc = "laboratorio";
$username_doc = "anis";
$password_doc = "anis";
$doc = mysql_pconnect($hostname_doc, $username_doc, $password_doc) or trigger_error(mysql_error(),E_USER_ERROR);
?>

No se en que estoy fallando alguien podria ayudarme
  #2 (permalink)  
Antiguo 12/09/2009, 14:53
Avatar de mortiprogramador
Colaborador
 
Fecha de Ingreso: septiembre-2009
Ubicación: mortuoria
Mensajes: 3.805
Antigüedad: 14 años, 7 meses
Puntos: 214
Respuesta: errores en listas dinamicas en dreamweaber

Hola
El error dice que no encuentra el archivo doc.php, y tampoco tu hablas de ese archivo, existe el mismo?
Nos cuentas, Saludos
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 04:02.