08-07-2004, 03:48 PM
| THREAD STARTER
#1 (permalink)
|
| New Member Join Date: Aug 2004 Location: Pittsburgh
Posts: 3
| Just starting out help.... 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. PHP Code: <?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());
????: NamePros.com http://www.namepros.com/code/42376-just-starting-out-help.html mysql_select_db (DB_NAME);
?> Now my index page. ????: NamePros.com http://www.namepros.com/showthread.php?t=42376 PHP Code: <?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 |
| |