-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin_news.php
More file actions
38 lines (34 loc) · 1.12 KB
/
admin_news.php
File metadata and controls
38 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<!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>Administration De Emul-Age</title>
<link href="../css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="corps">
<h1>Administration De Emul-Age - News </h1>
<p><a href="add_news_form.php?do=add">Ajouter Un news</a> - <a href="index.php">Retour Index Administration </a></p>
<p>
<? include('connexion.php');//Ficher de configuration
$sql=mysql_query("SELECT * from news order by date DESC");
$sql_row=mysql_query("SELECT id from news");
$rows=mysql_numrows($sql_row);
print $rows;
while($res=mysql_fetch_array($sql)){
print'<p>';
print'<table width="200" border="1">
<tr>
<td>'.$res['id'].'</td>
<td>'.$res['title'].'</td>
<td>'.$res['date'].'</td>
<td><a href="add_news_form.php?do=modify&id='.$res['id'].'">Modifier</a></td>
<td><a href="delete_news.php?id='.$res['id'].'">Supprimer</td>
</tr>
</table></p>';
}
?>
</p>
</div>
</body>
</html>