bonjour,
Je suis nouveau sur votre forum, ça a l'air pas mal du tout mais je suis très loin de tout comprendre et le forum est vaste.
je débute en php (autrement dit je suis nul) mais j'ai commencé un script et je bloc à un endroit autant au niveau idée que syntaxe.

Je souhaiterais que selon les horraires définis chaque jour la page change mais que le vendredi cela soit encore différent.
Pourriez vous s'il vous plait me corriger mon code ?
Je vous remercie

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
 
session_start();
 
include ("inc/conf_db_inc.php");
 
?>
 
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title></title>
<style type="text/css">
 
body {
text-align: center;
padding: 0;
margin: 0;
}
table {
center;
} 
 
th {
font-family: monospace;
border: thin solid #7E9749;
width: 50%;
padding: 5px;
text-align: center;
background-color: #7E9749;
background-image: url(sky.jpg);
}
td {
font-family: sans-serif;
border: thin solid #7E9749;
width: 50%;
padding: 5px;
text-align: center;
background-color: #ffffff;
}
caption {
font-family: sans-serif;
}
</style>
 
</head>
<body>
 
<table
 style="width: 350px; height: 30px; text-align: left; margin-left: auto; margin-right: auto;"
 border="1" cellpadding="2" cellspacing="2">
 
<?php
#changement de page selon horraire
 
$heure = date("H");
 
if ($heure="22-17") include ("prono-en-cours.php");
 
else {
include ("monprono1.php");
} 
 
 
 
$date=date("D");
 
if (($date="fri") &&  ($heure="22-21"))
{
include ("monprono1.php");
} else {
include ("prono-en-cours.php");
} 
 
?>
 
</table>
 
 
</body>
</html>