Ver Mensaje Individual
  #6 (permalink)  
Antiguo 08/06/2012, 02:30
Avatar de specicaste
specicaste
 
Fecha de Ingreso: marzo-2012
Ubicación: Guadarrama
Mensajes: 16
Antigüedad: 12 años, 2 meses
Puntos: 1
Respuesta: Paginas Worpress en PHP

sigue sin funcionar lo tengo asi
Código PHP:
<?php
/*
 * Template Name: Site Archives
 */
?> 
<?php get_header(); ?>

<div id="content" class="section">
<?php arras_above_content() ?>

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php arras_above_post() ?>
    <div id="post-<?php the_ID() ?><?php arras_single_post_class() ?>>

        <?php arras_postheader() ?>
        
        <div class="entry-content clearfix">
        <?php the_content__('<p>Read the rest of this entry &raquo;</p>''arras') ); ?>  
        <?php wp_link_pages(array('before' => __('<p><strong>Pages:</strong> ''arras'), 
            
'after' => '</p>''next_or_number' => 'number')); ?>
        </div>

        <?php arras_postfooter() ?>

        <?php 
        
if ( arras_get_option('display_author') ) {
            
arras_post_aboutauthor();
        }
        
?>
    </div>
    
    <?php arras_below_post() ?>
    <a name="comments"></a>
    <?php comments_template(''true); ?>
    <?php arras_below_comments() ?>
    
<?php endwhile; else: ?>

<?php arras_post_notfound() ?>

<?php endif; ?>

<?php
include "connect.php";

if(!isset(
$_POST["submit"])) {
    
$id = (int)$_GET["id"];

    
$sql_alterar_noticia "SELECT * FROM video WHERE id='$id' ORDER BY id DESC";
    
$resultado_alterar_noticia mysql_query($sql_alterar_noticia)
    or die (
mysql_error());

    if(
mysql_num_rows($resultado_alterar_noticia) < 1) {
        echo 
"Notícia inválida.";
    }
    else {
        while (
$linha=mysql_fetch_array($resultado_alterar_noticia)) {
            
$id $linha["id"];
            
$titulo $linha["titulo"];
            
$info $linha["info"];
            
$url_video $linha["url_video"];
            
$autor $linha["autor"];
            
            
$data_hora $linha["data_hora"];
            
$ip $linha["ip"];
            
$publicado $linha["publicado"];

            if(
$publicado=="S") {
                
$publicado "Sim";
            }
            else {
                
$publicado "Não";
            }

            echo 
"Alterar notícia<br /><br />";
            
            echo 
"$titulo </ br>";
              echo 
"<iframe width=\"560\" height=\"315\" src=\"http://www.youtube.com/embed/$url_video\" frameborder=\"0\" allowfullscreen></iframe>";
            
        }
    }
}
?>
</div><!-- #content -->

<?php get_sidebar(); ?>
<?php get_footer
(); ?>
me da el error "Fatal error: Call to undefined function get_header() in C:\Program Files (x86)\EasyPHP-5.3.9\www\videos.php on line 6"