par
YVES » 07 févr. 2006, 23:27
voilà ce que cela donne mais qui n'affiche pas l'avatar du memebre sur la carte.....
<?php
session_start();
?>
<?php
$db= mysql_connect(localhost, lemond, yc2907) or die("Impossible de se connecter à la base de données");
mysql_select_db('lemond_mondeideal',$db) or die('Erreur de selection base'.mysql_error());
$query = " SELECT pos_x,pos_y FROM membres WHERE id = ". $id;
$res = mysql_query($query);
$sql = mysql_fetch_row($res);
?>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body><center>
<MAP name="cartedebut">
<AREA shape="rect" coords="0,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="0,0,120,60" <img src="relief/pre.gif">
<AREA shape="rect" coords="0,0,180,60" <img src="relief/pre.gif">
<br>
<AREA shape="rect" coords="60,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="60,0,120,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="60,0,180,60" <img src="relief/chemin.gif">
<br>
<AREA shape="rect" coords="120,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="120,0,120,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="120,0,180,60" <img src="relief/pre.gif">
<br>
</MAP>
</body></center>
</html>
l'avatar devrait se positionner en plein centre, mais p-etre ai-je 1 probleme de config de champ dans ma base
(j'ai posté à ce sujet sur le forum mysql/base données)

[/php]
voilà ce que cela donne mais qui n'affiche pas l'avatar du memebre sur la carte.....
[php]
<?php
session_start();
?>
<?php
$db= mysql_connect(localhost, lemond, yc2907) or die("Impossible de se connecter à la base de données");
mysql_select_db('lemond_mondeideal',$db) or die('Erreur de selection base'.mysql_error());
$query = " SELECT pos_x,pos_y FROM membres WHERE id = ". $id;
$res = mysql_query($query);
$sql = mysql_fetch_row($res);
?>
[/php]
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body><center>
<MAP name="cartedebut">
<AREA shape="rect" coords="0,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="0,0,120,60" <img src="relief/pre.gif">
<AREA shape="rect" coords="0,0,180,60" <img src="relief/pre.gif">
<br>
<AREA shape="rect" coords="60,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="60,0,120,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="60,0,180,60" <img src="relief/chemin.gif">
<br>
<AREA shape="rect" coords="120,0,60,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="120,0,120,60" <img src="relief/chemin.gif">
<AREA shape="rect" coords="120,0,180,60" <img src="relief/pre.gif">
<br>
</MAP>
</body></center>
</html>
l'avatar devrait se positionner en plein centre, mais p-etre ai-je 1 probleme de config de champ dans ma base
(j'ai posté à ce sujet sur le forum mysql/base données) :oops: [/php]