logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Video Tutorials
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-14-2009, 05:05 PM   #1
jaymo
 
Join Date: Jan 2009
Posts: 55
Default Beginners Guide Part 8 Problem

Firstly thanks for the great tutorials.

I have followed the videos in order and when it comes to getting the data from the database and I F12 it. I get:

"The requested URL /Test/dwc.php was not found on this server."

I'm sure its something to do with the setup and not the code. The differences in the videos and my setup is I am using WampServer instead of WAMP5 and I didn't know how to move the www Directory to my documents (if that makes any difference)

I'm also not quite clear where that SQL database is located. Does it get stored on the localserver? I know that when i browser to http://localhost/phpmyadmin/, it says access denied to database. I'm new to all this php so I hope you can help. Many thanks
jaymo is offline   Reply With Quote
Old 01-15-2009, 01:25 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

if you type http://localhost do you see your site?
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-15-2009, 01:35 AM   #3
jaymo
 
Join Date: Jan 2009
Posts: 55
Default

hey, well when i go to that i see the WAMP server config. I dont remember the tutorials saying about uploading it to the localserver. Is this needed?
jaymo is offline   Reply With Quote
Old 01-15-2009, 03:19 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

sorry i cant comment on the tutorials , but if you have a local testing server configured localhost should show you your root folder
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-16-2009, 03:16 AM   #5
jaymo
 
Join Date: Jan 2009
Posts: 55
Default

yeh your right it should. I figured out that I need to add an alias. No instead of file not found it says parse error on line 5:

Code:
<?php

require_once("Connections/connection.php")     

// Query results from database
$query = sprintf("SELECT * FROM table1");   
$result = @mysql_query($query);
$row = mysql_fetch_array($result);


echo $row['field2'];

?>
Also im confused as to where the sql database actually is. Doesnt it have to be exported from SQL manager lite, and then placed on the localserver? Hope someone can help cos im lost!
jaymo is offline   Reply With Quote
Old 01-16-2009, 04:15 AM   #6
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

yes it has to sit on the server , but where is is now? you wamp server has a mysql server an the data base should be there , you will also have to granyt permision for username ans password to use iirt , a standare security
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-16-2009, 07:55 AM   #7
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

missing termination semi colon here

PHP Code:
require_once("Connections/connection.php"
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 01-16-2009, 08:59 AM   #8
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

return of the jedi
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 01-16-2009, 09:21 AM   #9
davidj
davidj's Avatar
 
Join Date: Sep 2005
Location: The Toon (newcastle upon Tyne)
Posts: 8,256
Default

only passing through ed on my way to Alderaan
__________________
Would you like to learn PHP from me? Check out -> www.codezenith.co.uk
davidj is offline   Reply With Quote
Old 01-16-2009, 09:36 AM   #10
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,175
Default

may the force be with you then
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:22 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com