Tuesday, May 22, 2012

How to Make a Common Php Information Scheme

Good day and welcome to my tutorial!

Now lets get started out!

First we might possibly want to make the table in MySQL put into use to retail outlet our news in!

The SQL file appears like this:

paste that into a text document and help save it as news.sql (Remember to decide upon "All Files..."

Now lets get started out on the solution! First we will make the script that gathers the news and outputs them and then we will make the script that adds the news to the database!

Stage one:

Begin the process of by creating a file called index.php in your webserver.

In that file we will of class launch by writing the PHP opening tags like this:

Stage 2:

Now we will join to our MySQL server by by making use of mysql_join() and mysql_decide upon_db() like this:

Now we're connected to the database!

Stage 3:

Now lets accumulate the news and output them! Like this:

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

Now we're executed with the script outputs the news!

Stage 4:

Now lets make the script that inserts the news into the database! It appears like this:

now help save that as acp.php.

Now you happen to be executed!

Now you have a news solution whereby you can put up news from acp.php and see the news you posted on index.php!

Thank you for looking at!





No comments:

Post a Comment

Note: Only a member of this blog may post a comment.