--0-380872989-1221169549=:27263
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
I am currently going through 'davidj's php tutorials [at]
http://www.dreamweaverclub.com/vtm/php-mysql-apache.php and am in the proce=
ss of learning.=A0 I am encountering an issue though that I can't seem to f=
ind an answer to.=A0 Maybe someone can help me.=A0
I downloaded the WAMP server, (which I found out I could do after painstaki=
ngly 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=A0=A0=A0 =3D=A0=A0 "practice";
$username=A0=A0=A0 =3D=A0=A0 "daniel";
$password=A0=A0=A0 =3D=A0=A0 "buggytaz";
///////////////////////////////////////
$link=A0=A0=A0=A0=A0=A0=A0 =3D=A0=A0 [at] mysql_connect('localhost', $username,=
$password);
$db=A0=A0=A0=A0=A0=A0=A0=A0=A0 =3D=A0=A0 mysql_select_db($database, $link);
?>
(And this is my practice.php)
<?php
require_once("Connections/connection.php");=A0 //database connection
/////////////////////////////////////////////////////
$query=A0=A0 =3Dsprintf("SELECT * FROM table1");
$result=A0 =3D [at] mysql_query($query);
$row=A0=A0=A0=A0 =3Dmysql_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\Tes=
t\Images\practice.php on line 2
Fatal error: require_once() [function.require]: Failed opening required 'Co=
nnections/connection.php' (include_path=3D'.;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:=A0=A0 (include_path=3D'=
..;C:\php5\pear')
But I honestly have no idea.
Please give me a hand if you can.
Unable2peastr8 [at] yahoo.com=0A=0A=0A
--0-380872989-1221169549=:27263--
