Saludos desde Venezuela !!!
El motivo del presente post es solicitar ayuda en relaciòn a base de
datos y php, especìficamente, el sistema que brinda gratuitamente
Tripod-Lycos.
Estuve leyendo todos sus manuales sobre este tema, sin embargo aùn no
logro crear un libro de visitas.... Tan siquiera eso...
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Uno de los manuales que explican como se realiza un libro de visitas se
localiza en este link:
http://webmaster.lycos.es/topics/tec...p-workshop7/1/
Ahora bièn, yo seguì ese manual. No obstante, lleguè a mitad de camino
debido a que allì no explican del todo bièn el procedimiento.
Alguien que me ayude a aclararlo ?
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
En un principio, programè la tabla que debo realizar y todo bièn.
Luego, diseñè el formulario (tal cual como allì me lo especifican) y
todo bièn.
Sin embargo, a partir del 3er paso, no logro continuar y comprenderlo
del todo.....
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
http://webmaster.lycos.es/topics/tec...p-workshop7/3/
Allì me hablan sobre la introducciòn de unos còdigos. Pero, probè de
varias maneras. Y siempre, me aparece un mensaje de error....
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
Mis dudas son:
En què pàgina va este còdigo?
1 : : <?php
2 : $continu = 1;
3 : if ($nom == "")
4 : {
5 : print ("Your name is needed ! <br>");
$continu = 0 ;
6 : }
7 : else
8 : {
9 : print ("Thank you for giving your name");
10: }
11: ?>
Y este còdigo?
1 :<html>
2 : <head><title>PHP workshop for form management: ajoutimp.php</
title><head>
3 : <body>
4 : <?php
5 : $db = mysql_connect();
6 : $continu=1;
7 : if ($nom == "")
8 : {
9 : print("Your name is needed !<br>");
10: $continu=0;
11: }
[...]
22: if ($continu == 1)
23: {
24: $date=date("Y-m-d");
25: $sql="INSERT INTO impression (nom, email, impression, date,
commentaire) VALUES ('$nom', '$email', 'impression', '$date',
'$commentaire')";
26: mysql_query($sql, $db);
27: print("Thank you for giving me your impressions !") ;
28: }
29: else
30: {
31: print("<a href=impressions.html>back</a>");
32: }
33: ?>
34: </body>
35: </html>
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Es conveniente destacar, que mi tabla tiene por nombre impression ,
La pàgina web donde està el formulario se llama form.php
Y tambièn, creè una pàgina llamada ajoutimp.php
![Negando](http://static.forosdelweb.com/fdwtheme/images/smilies/negar.gif)
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Este còdigo donde va?
en la pàgina form.php , en la ajoutimp.php , o donde ?
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
1 : <html>
2 : <head><title>PHP workshop for form management: adminimp.php</
title><head>
3 : <body>
4 : <table align="center" cellspacing="0" cellpadding="0" border="1"
width="80%">
5 : <tr>
6 : <td bgcolor="black"><font color="white">DATE</td>
7 : <td bgcolor="black"><font color="white">NAME</td>
8 : <td bgcolor="black"><font color="white">EMAIL</td>
9 : <td bgcolor="black"><font color="white">IMPRESSION</td>
10: <td bgcolor="black"><font color="white">COMMENT</td>
11: </tr>
12: <?php
13: $db = mysql_connect();
14: $sql="SELECT * FROM impression ORDER BY date";
15: $res=mysql_query($sql, $db);
16: while ($ligne = mysql_fetch_object ($res))
17: {
18: print "<tr>";
19: print "<td>$ligne->date</td>";
20: print "<td>$ligne->nom</td>";
21: print "<td>$ligne->email</td>";
22: print "<td>$ligne->impression</td>";
23: print "<td>$ligne->commentaire</td>";
24: print "</tr>";
25: }
26: mysql_free_result ($res);
27: ?>
28: </table>
29: </body>
30: </html>
Ayuda................
Mi e-mail es: [email protected]
Ayuda,,,... por favor............
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Sòlo deseo realizar un libro de visitas....
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
Conozco mucho el html,... Pero, las bases de datos y el php me tienen
...................
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)