Jump to content

Very easy help.


mindfield

Recommended Posts

Im new to this and I know this is going to be nothing to the experts on here but I need help with this.

 

http://pgerochi.com/newsmanager/news.php

 

So right now I am able to add an article and it will post. My problem is that when i go to the id... it wont do anything, it wont post the content and all that, please help?

 

If you want to see my coding tell me.

Link to comment
https://forums.phpfreaks.com/topic/80724-very-easy-help/
Share on other sites

<?php

 

// **********************************************

// Includes required files

include("includes/start.php");

include("includes/connect.php");

include("includes/functions.php");

 

// **********************************************

// Include header files

include("includes/html_header.php");

include("includes/header.php");

 

?><title>News Article</title>

 

<h1>News Article</h1>

 

<?php

 

// Build query

$query = 'SELECT  article_id,article_content

  FROM news_article';

// Execute query

$result = mysql_query($query,$connect) or die(mysql_error());

// Display results

for($i=0; $i<mysql_num_rows($result); $i++){

  // Get next record

  list($article_content) = mysql_fetch_row($result);

  // Display title

  echo '<br />'.$article_content.'<br />';

}

 

?>

 

<?php

 

// **********************************************

// Include footer files

include("includes/footer.php");

include("includes/html_footer.php");

 

?>

Link to comment
https://forums.phpfreaks.com/topic/80724-very-easy-help/#findComment-409463
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.