Florin Frătică
Florin Frătică

Reputation: 587

Including a php file makes html section not work properly

There's something wrong with one of my websites. If I include a php file to connect to the database like this one:

<?php
$username = "";
$password = "";
$hostname = ""; 

$dbhandle = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
$selected = mysql_select_db("rugbyspi_ador",$dbhandle) or die("Could not select examples");

mysql_close($dbhandle);
?>

and rename the file from index.html to index.php one section appears very big. I'll give you the link to see by yourself:

http://www.rugbyspirit.net/ador_test/index.php look at "Scolile participante" And here is the exact same HTML code without including the php file to connect to the database: http://www.rugbyspirit.net/ador_test/test.html How can I solve this problem?

Upvotes: 0

Views: 42

Answers (1)

matthewpavkov
matthewpavkov

Reputation: 2928

This is a CSS issue. You just need to adjust your CSS:

.box {
    background: url(images/box.png) repeat 0 0;
    padding: 19px 32px 29px 32px;
    position: relative;
}

You have height: 100% set on .box, which isn't needed. This is causing the Chrome issue.

Upvotes: 2

Related Questions