Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Rodrigo Resende

[Resolvido] Erro com script

Recommended Posts

Ola galera..

Eu baixei esse script aqui em baixo:

http://forum.imasters.com.br/index.php?showtopic=226803

Só que quando eu acesso: http://localhost/testes/calendario.php

 

Aparece isso:

 

") { if($month==12) { $month=1; $year++; } else { $month++; } } if ($show_month=="<") { if($month==1) { $month=12; $year--; } else { $month--; } } } if (isset($day)) { if ($day<="9"&ereg("(^[1-9]{1})",$day)) { $day="0".$day; } } if (isset($month)) { if ($month<="9"&ereg("(^[1-9]{1})",$month)) { $month="0".$month; } } if (!isset($year)) { $year=date("Y",mktime()); $year = isset($_GET["ano"]) ? $_GET['ano'] : $year; } if (!isset($month)) { $month=date("m",mktime()); $month = isset($_GET["mes"]) ? $_GET['mes'] : $month; if ($month == 0) { $month = 12; $year--; } if ($month == 13) { $month = 1; $year++; } } if (!isset($day)) { $day=date("d",mktime()); } $thisday="$year-$month-$day"; $day_name=array("S","T","Q","Q","S","S","D"); $cp = "B"; $month_abbr=array("","JANEIRO","FEVEREIO","MARÇO","ABRIL","MAIO","JUNHO","JULHO","AGOSTO","SETEMBRO","OUTUBRO","NOVEMBRO","DEZEMBRO"); $y=date("Y"); switch ($month) { case 1: $month_name = "JANEIRO"; break; case 2: $month_name = "FEVEREIRO"; break; case 3: $month_name = "MARÇO"; break; case 4: $month_name = "ABRIL"; break; case 5: $month_name = "MAIO"; break; case 6: $month_name = "JUNHO"; break; case 7: $month_name = "JULHO"; break; case 8: $month_name = "AGOSTO"; break; case 9: $month_name = "SETEMBRO"; break; case 10: $month_name = "OUTUBRO"; break; case 11: $month_name = "NOVEMBRO"; break; case 12: $month_name = "DEZEMBRO"; break; } $cp .= "Y W"; $_="ndes"; ?> =0;$a--) { $d=date("t",mktime(0,0,0,$month,0,$year))-$a; ?> $d) { ?> 1) { $d=1; while(date("w",mktime(0,0,0,($month+1),$d,$year))<>1) { ?> « »

 

)">. align="center">

Eu fiz tudo corretamente .. fiz o bd .. coloquei o user e tudo mais..

O admin funcionou certinho..

Alguem pode me ajudar?

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.