PHP Notification Bar Issues
Serial Number |
Announcement Title |
Time |
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 $rows [' n_id ']; echo " | "; Echo"
"; echo $rows [' n_title ']; echo " | "; Echo"
"; echo $rows [' n_time ']; echo " | "; Echo"
";} Mysql_close ($DB);? >
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 ']";
?>