php and html are to differents files, you can have png/gif together? no you cant, that means you cant! config_sql,php
<?php
////////////MySQL Infos///////////////////
$server = 'localhost'; //Server Address - if is localhost use localhost if not then use Internet Protocol
$User = 'root'; //Username
$Password = ''; //Password mysql
$Database = ''; //Database Name
$Connection = mysql_connect($server, $User, $Password) or die(mysql_error());
mysql_select_db($Database, $Connection) or die(mysql_error());
function total($tab, $cond = NULL) {
$sql = mysql_query("SELECT COUNT(*) AS total FROM ".$tab." ".$cond."") or die(mysql_error());
$c = mysql_fetch_array($sql);
return $c['total'];
}
?>
Index,php
<?php
include('configs/config_sql.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
</body>
</html>