Afficher un message
Vieux 18/02/2008, 18h19   #1
Norberto_Rivera@yahoo.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Again: Creating a web link using HTML, php and MySQL.

I am new in all this php, html, etc world.
I just want to use a link that will send the person to a external
webpage.
The first link works:
echo "<tr><th><a href='{$info['website2']}'>Click Here!</a></th>";
But when I try to get back to it, does not work. I tried using
constant TESTCONS but it does not work. I checked and I still have
the correct value in TESTCONS but I cannot get it out in the link.
.

You want to see this code, please visit:
http://goji3000.com/Atestgojicreated.php




<html>
<title>HTML with PHP</title>
<body>
<h1></h1>

<html>
</html>

<?php
// Connects to your Database
mysql_connect("mysql", "user", "password") or die(mysql_error());
mysql_select_db("socios") or die(mysql_error());
$data = mysql_query("SELECT * FROM `informacion` WHERE `key` =
673538")
or die(mysql_error());

while($info = mysql_fetch_array( $data ))
{
echo "<tr><th><a href='{$info['website2']}'>Click Here!</a></th>";

define("TESTCONS", "{$info['website2']}");
}
?>
</body>
<html> THIS IS ANOTHER TEST.</html>
<div align="center"><?PHP
ECHO TESTCONS; ?>

<html> THIS IS ANOTHER TEST.</html>
<?PHP
ECHO "<tr><th><a href=(TESTCONS)>enter!</a></th>";
?>
  Réponse avec citation
 
Page generated in 0,04943 seconds with 9 queries