Questions about the PHP notification bar

Source: Internet
Author: User
PHP Notification Bar Issues


















Include (".. /control/config.php "), $result =mysql_query (" select * from NOTICE as n order by n.n_time desc LIMIT 5 "), while ($rows =mysql_f Etch_array ($result)) {echo " "; Echo" "; Echo" "; Echo" "; Echo" ";} Mysql_close ($DB);? >
Serial Number Announcement Title Time
";
echo $rows [' n_id '];
echo "
";
echo $rows [' n_title '];
echo "
";
echo $rows [' n_time '];
echo "

When I click on the theme (N_title) on the page, I go to a page. Displays the content of the topic.
How do I automatically generate a new interface display when I click on a theme?

------Solution--------------------
Create a new page. The record is queried to show it.
------Solution--------------------
echo "$rows [N_title]";

view.php
Include (".. /control/config.php ");
$result =mysql_query ("select * from NOTICE as n where N_id=$_get[id]");
$rows = Mysql_fetch_array ($result);
Code for output $rows
------Solution--------------------
Your title is read from the database, then in the read header, also read the article ID, which is included in the link to pass

The link to the title is view.php?id=
This allows you to pass an article ID parameter to the view.php page.

This is the view.php page
if (Empty ($_get[' id ')))
Exit (' No specified article ID ');
Read an article based on an incoming ID no, it's okay.
$SQL = "SELECT * from ' post ' WHERE id=$_get[' id ']";
?>
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.