
23.09.2016, 16:27
|
|
Новичок
Регистрация: 04.12.2008
Сообщений: 11
С нами:
9176038
Репутация:
8
|
|
PHP код:
[COLOR="#000000"][COLOR="#0000BB"][/COLOR][COLOR="#007700"]'[/COLOR][COLOR="#007700"];
[/COLOR][COLOR="#0000BB"]?>[/COLOR] ¡ES INCORRECTO!
[COLOR="#0000BB"]Elegiste a [/COLOR][COLOR="#0000BB"]$aux[/COLOR][COLOR="#DD0000"] como el autor del poema:"[/COLOR][COLOR="#007700"]; echo[/COLOR][COLOR="#DD0000"]"
"[/COLOR][COLOR="#007700"];
[/COLOR][COLOR="#FF8000"]// Imprime el quote segun el parametro pasado por url $idquote
[/COLOR][COLOR="#0000BB"]$query[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#DD0000"]"SELECT * FROM cms_stories where sid =[/COLOR][COLOR="#0000BB"]$idquote[/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#007700"]; [/COLOR][COLOR="#0000BB"]$result[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]mysql_query[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$query[/COLOR][COLOR="#007700"]) or die ([/COLOR][COLOR="#DD0000"]"no anda num 3"[/COLOR][COLOR="#007700"]); while ([/COLOR][COLOR="#0000BB"]$row[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]mysql_fetch_array[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$result[/COLOR][COLOR="#007700"])) { [/COLOR][COLOR="#0000BB"]$aux[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]utf8_encode[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$row[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'hometext'[/COLOR][COLOR="#007700"]]); } echo[/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#0000BB"]$aux[/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#007700"];
echo[/COLOR][COLOR="#DD0000"]"
"[/COLOR][COLOR="#007700"];
[/COLOR][COLOR="#FF8000"]// Imprime el autor segun el parametro pasado por url $idautor
[/COLOR][COLOR="#0000BB"]$query[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#DD0000"]"SELECT * FROM cms_topics where topicid =[/COLOR][COLOR="#0000BB"]$idautor2[/COLOR][COLOR="#DD0000"]"[/COLOR][COLOR="#007700"]; [/COLOR][COLOR="#0000BB"]$result[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]mysql_query[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$query[/COLOR][COLOR="#007700"]) or die ([/COLOR][COLOR="#DD0000"]"no anda num 3"[/COLOR][COLOR="#007700"]); while ([/COLOR][COLOR="#0000BB"]$row[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]mysql_fetch_array[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$result[/COLOR][COLOR="#007700"])) { [/COLOR][COLOR="#0000BB"]$aux[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]utf8_encode[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$row[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'topicname'[/COLOR][COLOR="#007700"]]); } echo[/COLOR][COLOR="#DD0000"]"Sin embargo, [/COLOR][COLOR="#0000BB"]$aux[/COLOR][COLOR="#DD0000"] es quien lo escribió."[/COLOR][COLOR="#007700"];
echo[/COLOR][COLOR="#DD0000"]"
"[/COLOR][COLOR="#007700"]; if ([/COLOR][COLOR="#0000BB"]$_COOKIE[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'whowrong'[/COLOR][COLOR="#007700"]] +[/COLOR][COLOR="#0000BB"]$_COOKIE[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'whoright'[/COLOR][COLOR="#007700"]] +[/COLOR][COLOR="#0000BB"]1[/COLOR][COLOR="#007700"]!=[/COLOR][COLOR="#0000BB"]10[/COLOR][COLOR="#007700"]) { [/COLOR][COLOR="#0000BB"]$nextq[/COLOR][COLOR="#007700"]=[/COLOR][COLOR="#0000BB"]$_COOKIE[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'whowrong'[/COLOR][COLOR="#007700"]] +[/COLOR][COLOR="#0000BB"]$_COOKIE[/COLOR][COLOR="#007700"][[/COLOR][COLOR="#DD0000"]'whoright'[/COLOR][COLOR="#007700"]] +[/COLOR][COLOR="#0000BB"]2[/COLOR][COLOR="#007700"]; echo[/COLOR][COLOR="#DD0000"]"PRÓXIMO POEMA ([/COLOR][COLOR="#0000BB"]$nextq[/COLOR][COLOR="#DD0000"]de 10)"[/COLOR][COLOR="#007700"]; echo[/COLOR][COLOR="#DD0000"]"
Reiniciar juego"[/COLOR][COLOR="#007700"]; } else { echo[/COLOR][COLOR="#DD0000"]"FIN. Enviar tu puntaje."[/COLOR][COLOR="#007700"]; } [/COLOR][COLOR="#0000BB"]mysql_close[/COLOR][COLOR="#007700"]([/COLOR][COLOR="#0000BB"]$conecta[/COLOR][COLOR="#007700"]); [/COLOR][COLOR="#0000BB"]?> [/COLOR] [COLOR="#0000BB"] [/COLOR][/COLOR]
|
|
|