- Impact
- 0
Hello I am just starting out trying to learn PHP without taking scripts and modifying them to my likeing so now I just read tuts and books and code snippets. Now here is my code then is my problem.
My Connections page thats a bit modifyed so i can post it here.
Now my index page.
Now i am sure im missing something or doing something wrong cuz on my page nothing comes up except for my header that includes just a navbar and a banner. Any help..? Thanks
My Connections page thats a bit modifyed so i can post it here.
PHP:
<?php
// Connection parameters
define ('DB_USER', '*****');
define ('DB_PASSWORD', '*****');
define ('DB_HOST', 'localhost');
define ('DB_NAME', '*******');
$connect = mysql_connect (DB_HOST, DB_USER, DB_PASSWORD) or die (mysql_error());
mysql_select_db (DB_NAME);
?>
Now my index page.
PHP:
<?php
include ('./includes/header.inc');
include ('./includes/connections.php');
$query = "Select * FROM home_news";
$result = mysql_query($query);
?>
Now i am sure im missing something or doing something wrong cuz on my page nothing comes up except for my header that includes just a navbar and a banner. Any help..? Thanks