2 $db = mysql_connect("localhost","abuguet","CambiamE!!");
3 mysql_select_db("abuguet");
4 mysql_set_charset('utf8',$db);
9 <title
>Generador de Episodios de la Rosa de Guadalupe
</title
>
10 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
11 <style type
="text/css">
12 *{margin
: 0; padding
: 0;}
14 background
-image
: url(bluebg
.png
);
16 font
-family
: "Trebuchet MS", sans
-serif
;
24 background
-image
: url(proximoepisodio
.png
);
28 #header span{ display: none; }
32 border
: 1px solid
#757d83;
33 box
-shadow
: 0 2px
0 #bdd7e6;
36 background
-image
: url(whitebg
.png
);
46 text
-shadow
: 0 1px
0 #c0d7e5;
51 <script type
="text/javascript">
53 var _gaq
= _gaq
|| [];
54 _gaq
.push(['_setAccount', 'UA-20018878-2']);
55 _gaq
.push(['_trackPageview']);
58 var ga
= document
.createElement('script'); ga
.type
= 'text/javascript'; ga
.async
= true;
59 ga
.src
= ('https:' == document
.location
.protocol
? 'https://ssl' : 'http://www') +
'.google-analytics.com/ga.js';
60 var s
= document
.getElementsByTagName('script')[0]; s
.parentNode
.insertBefore(ga
, s
);
67 <a href
="/" id
="header"><span
>En el proximo episodio de la rosa de guadalupe
</span
></a
>
68 <div id
="episodio"><p
>
70 $nombre = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'nombre' order by rand() limit 1"))or die(mysql_error());
71 $causa = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'causa' order by rand() limit 1"));
72 $tema = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'tema' order by rand() limit 1"));
73 $efecto = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'efecto' order by rand() limit 1"));
74 $familiar = mysql_fetch_row(mysql_query("SELECT * FROM `rosa_de_guadalupe` WHERE `tipo` = 'familiar' order by rand() limit 1"));
75 printf("<strong>%s</strong> Hizo <strong>%s</strong> porque su <strong>%s</strong> <strong>%s</strong>. La tratan de violar, se da cuenta que <strong>%s</strong> es <strong>%s</strong>, y la virgencita le ayuda a sobresalir.", $nombre[1], $tema[1], $familiar[1], $causa[1], $tema[1], $efecto[1]);
78 <div id
="refresh">Refresca para más
</a
>