link a un archivo
| From: | Morpheus123102 | Date: | Sun, 28 Jan 2007 20:03:55 +0000 |
| Subject: | link a un archivo | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-60340@lists.php.net to get a copy of this message | ||
Tengo el siguiente código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
<style type="text/css">
<!--
..Estilo1 {
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
}
-->
</style>
</head>
<body>
<p><img src="imagen/EN SOL.JPG" alt="Engileg S.L." width="250" height="43" /></p>
<table width="1009" border="1">
<tr>
<td><p><a href="cas.php" class="Estilo1"><?php
$link=mysql_connect('localhost','root','5enube') or die("No s'ha pogut connectar");
mysql_select_db('idiomes') or die("no s'ha pogut seleccionar la base de dades");
$query='select '.$_GET['idioma'].' from menus where esp="inicio"';
$result=mysql_query($query) or die('Consulta erronea: '.mysql_error());
echo "<table>\n";
while ($line=mysql_fetch_array($result,MYSQL_ASSOC)){
echo "\t<tr>\n";
foreach($line as $col_value){
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}
echo "</table>\n";
mysql_free_result($result);
mysql_close($link);
?></a></p></td>
<td><a href="cas.php" class="Estilo1">uno </a></td>
<td><a href="cas.php" class="Estilo1">dos</strong></a></td>
<td><a href="cas.php" class="Estilo1">tres</strong></a></td>
</tr>
</table>
</body>
Y lo que me interesa es que el código php, que es un un campo XXXXX, este campo sea linkado a otro archivo. Como lo puedo hacer, puesto que esto no funciona.