because we are on the internet.

After connect php website and database,we will try to get the content from the database,we can create a page which is called content.php.

And we just need to put this code in the <body> </body> part.

<?php

$query_subjects = “SELECT * FROM subjects”;

$query = mysql_query($query_subjects);

if(!$query) {

die(”Database selection failed: ” . mysql_error() );

}

//so we just have get the content from the database subjects table,now we need to display the content on the website.

while($ subject_row = mysql_fetch_array($query)) {

echo $row[menu_name] ;

}

?>

It will get all the meun_name from the database and it will display on your website.

We just need to create a file config.php

and have the code

<?php

//Database Constants
define(”DB_SERVER”, “localhost”);
define(”DB_USER”, “english_wefri”);
define(”DB_PASS”, “winnerlabel”);
define(”DB_NAME”, “english_wefriend”);

?>

then create a file which is called connection.php

and put the code in the file.

<?php
require(”constants.php”);

// 1.Create a database connection
$connection = mysql_connect(DB_SERVER,DB_USER,DB_PASS);
if(!$connection){
die(”Database connection failed:” . mysql_error());
}

// 2.Select a database
$db_select = mysql_select_db(DB_NAME,$connection);
if(!$db_select){
die(”Database selection failed: ” . mysql_error());
}
?>

Then we just connect the our site to the database.

And we can put different kinds of code after that in the <head> & </head> as well as <body> </body> party.

After finish that we shall close the database,we just need to create another file which is called  footer.php

we just need to put the code

</div>
<div id=”footer”>Copyright 2007,Widget Corp</div>
</body>
</html>
<?php
if(isset($connection)){
mysql_close($connection);
}
?>

within the footer.php

so this three files help us with create a connection the our database and disconnect ourdatabase.

Check php script of your hosting.

First,I’d like to post a small php script,

<?php

phpinfo();

?>

This script can help you know the php installed in your servers.You can put this script between the <body> </body>,and save your file in .php,then upload that file to your hosting.

visit that file,then you can get the information of php script of your hosting.

Anatomy free wordpress template

3 columns,brown and black colors,widgets ready,big header,left and right sidebars,free wordpress template for blog about health,medicine.

Click to download:vintagemedical.zip

Best streaming video host

Although,there are many streaming video host out there,however,as a buyer,we always want to know which one is the best.Here we have some simple suggestions for you.

Best streaming video host #1 HOSTMASTER

Streaming video host disk space: 200 GB
Streaming Video Host Bandwidth: 2,000 GB
Streaming Video Host Cost: $5.95/month
HostMonster is the premium streaming video host with lots of Streaming video host space and traffic. Their top ranked Streaming video host package is an affordable and discount way to start publishing your video files online. If you need a good streaming video host, check out HostMonster first!

Best Streaming Video Host #3 - IX WEB HOSTING

Streaming Video Web Host Space: 200 GB
Streaming Video Web Host Bandwidth: 2,000GB
Best Streaming Video Web Host Prices: $4.95/month
Streaming Video Web Host Directory Approval: Yes - 5 Starts out of 5
Streaming Video Web Host Review Comments: Easily the Top Streaming Video Host - With massive amounts of video storage space and almost unlimited bandwidth, this streaming video host earns our top streaming video web host award.

 

About Author

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vestibulum at arcu. Integer et risus. Morbi id tellus. Integer felis. Mauris malesuada, turpis vitae facilisis euismod, dui arcu adipiscing sem, eu vulputate leo ante in lacus. Sed porta accumsan lectus. Aenean ac sem. In consequat tempus velit. Phasellus leo enim, adipiscing a, egestas nec, pretium ut, pede. Mauris sollicitudin diam et mauris. Sed quis enim vel augue egestas lobortis. Etiam tempus ipsum vel neque.