2013年10月12日 星期六

How in order to Make your Simple Php News System

Hello along with thanks for visiting this tutorial!

Now lets receive started!

First most of us may choose to help to make your stand within MySQL used to save our news in!

The SQL track seems to be like this:

composite this suitable word insurance policy and save it because news.sql (Remember to pick "All Files..."

Now let us get started on the system! First we are going to help make the actual script that will gathers the news flash and also components them and then most of us is likely to make the script in which brings your news flash for the database!

Step 1:

Start by developing a document termed index.php inside your webserver.

In of which record many of us could of course start by creating the PHP beginning tags just like this:

Step 2:

Now i will get in touch that will our MySQL machine utilizing mysql_connect() in addition to mysql_select_db() including this:

Now we could connected to your database!

Step 3:

Now permits gather the particular media and output them! Like this:

Posted at ".$r['date']." simply by ".$r['author'].""; echo $r['content'].""; } ?>

Now we're completed using the script components that news!

Step 4:

Now why don't we make the script that attachements the particular reports on the database! It appears like this:

now help you save which when acp.php.

Now you might be done!

Now you might have a media process where by you possibly can submit news from acp.php along with notice the news everyone posted upon index.php!

Thank people regarding reading!



???????

沒有留言:

張貼留言