ayuda please
Publicado por karen (4 intervenciones) el 01/10/2013 20:29:13
Hola estoy estudiando diseño grafico y tengo que hacer un ejercicio de econtrarle errores a este codigo, pero me esta costando mucho entender este programa por favor si alguien puede ayudarme se lo agradeceria mucho. Gracias
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
<?php
/* Name: fix.php
Description: Practice script for troubleshooting.
Written by: Janet Valade
$places = 700;
?>
<html>
<head><title>Fix this script</title>
<style type='text/css'>
<!--
table {
margin-left: 3em;
padding: 5;
}
td {
padding: .1in .25in .1in .25in;
}
h2,h3 {
font-weight: bold;
text-align: center;
}
-->
</style>
</head>
<body>
<?php
$event = "Three Hundredth Annual World Magic Convention"
$schedule = array("Spells" => 1,"Potions" => 2,"Charms" => 3 );
define("DATE","January 15");
echo "<h2 style="color: red'>Announcing the $event</h2>";
echo "<h3>".DATE."</h3>";
echo "<p>This yearly conference—the premier education and networking forum for the magic community—is the place";
echo "to learn about the most successful magic methodologies and to understand how to integrate new magic technologies into your current practices. </p>";
echo '<p>This year's conference offers the following educational events.</p>';
echo "<table border='1'>"
<tr><th>Time</th><th>Session</td></tr>";
foreach($schedule as $name => $time)
{
echo "<tr>
<td>$time</td>
<td>$name</td>
</tr>";
)
echo "</table>;
echo "<p style='margin-top: 2em'>Witches and Warlocks! Hurry and sign up! Places are filling up fast. ";
echo '<h3>Only $places places left</h3>';
?>
Valora esta pregunta
0