I don't know what I'm doing wrong

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am currently going through 'davidj's php tutorials @
http://www.dreamweaverclub.com/vtm/php-mysql-apache.php and am in the process of learning.  I am encountering an issue though that I can't seem to find an answer to.  Maybe someone can help me.  
I downloaded the WAMP server, (which I found out I could do after painstakingly manually setting up my own set of wamp programs) and made it up to the part of the tutorials when I am required to check out my work. 
(This is my connections.php)

<?php
//////////////////////////////////////
$database    =   "practice";
$username    =   "daniel";
$password    =   "buggytaz";
///////////////////////////////////////
$link        =   @mysql_connect('localhost', $username, $password);
$db          =   mysql_select_db($database, $link);
?>

(And this is my practice.php)

<?php
require_once("Connections/connection.php");  //database connection

/////////////////////////////////////////////////////
$query   =sprintf("SELECT * FROM table1");
$result  =@mysql_query($query);
$row     =mysql_fetch_array($result);
/////////////////////////////////////////////////////
echo $row['field2'];
?>

The database IS in place through the SQL managment program.
I am able to view my php.info document.
Now... this is the issue that I am having.
When I try to view the page I get this back:

Warning: require_once(Connections/connection.php) [function.require-once]: failed to open stream: No such file or directory in C:\wamp\www\WebRoot\Test\Images\practice.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Connections/connection.php' (include_path='.;C:\php5\pear') in C:\wamp\www\WebRoot\Test\Images\practice.php on line 2

I have a feeling that my issue is contained within:   (include_path='.;C:\php5\pear')
But I honestly have no idea.
Please give me a hand if you can.
Unable2peastr8@xxxxxxxxx


      

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux