Je recherche un peu d'aide car je ne vois pas pouruoi sa ne marche pas ...
Je n'arrive pas a faire marcher cette requete ....
Code : Tout sélectionner
<?php
$db = mysql_connect('localhost', 'root', '');
mysql_select_db('matable',$db);
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$db2=mysql_query("SELECT * FROM infos WHERE id='$_GET[dest]'");
$c=mysql_fetch_array($db2);
print $c[title];
?>Code : Tout sélectionner
Notice: Undefined variable: sql in c:\documents and settings\stéph\bureau\sinorca\sinorca\lib\fpays.php on line 5
Notice: Undefined variable: sql in c:\documents and settings\stéph\bureau\sinorca\sinorca\lib\fpays.php on line 5
Erreur SQL !
Query est vide