le 12/10/2004 à 21:04
n00b php question
c toi aucun sens ^-^
gl bonne chance pour la continuation de ton site
hf amuse toi
gl bonne chance pour la continuation de ton site
hf amuse toi
<?php /* Date de création: 12.10.2004 */ ?>
<html>
<body>
<?php
$db = mysql_connect('localhost', 'root', '');
mysql_select_db('test',$db);
$sql='SELECT article.* FROM article, publication
WHERE article.IDPUBLICATION=publication.IDPUBLICATION AND
publication.YEARPUBLICATION="2003"';
$req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error());
$data = mysql_fetch_array($req);
mysql_free_result ($req);
mysql_close ();
?>
resultats :<br>
<? echo $data['AUTHOR'];?>
<?mysql_close($db);?>
</body>
</html>
Chargement en cours